MS search and index works
This commit is contained in:
parent
756278f498
commit
35f6856380
2 changed files with 1 additions and 3 deletions
|
|
@ -2,10 +2,8 @@ class UsersController < ApplicationController
|
||||||
before_filter :authenticate_user!, :except => [:new, :create]
|
before_filter :authenticate_user!, :except => [:new, :create]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
puts "awesome"
|
|
||||||
@groups_array = current_user.groups.collect{|x| [x.to_s, x.id]}
|
@groups_array = current_user.groups.collect{|x| [x.to_s, x.id]}
|
||||||
|
|
||||||
puts params.inspect
|
|
||||||
unless params[:q]
|
unless params[:q]
|
||||||
@people = Person.all
|
@people = Person.all
|
||||||
render :index
|
render :index
|
||||||
|
|
|
||||||
|
|
@ -33,4 +33,4 @@
|
||||||
= form_for Request.new do |f|
|
= form_for Request.new do |f|
|
||||||
= f.select(:group_id, @groups_array)
|
= f.select(:group_id, @groups_array)
|
||||||
= f.hidden_field :destination_url, :value => person.email
|
= f.hidden_field :destination_url, :value => person.email
|
||||||
= f.submit
|
= f.submit "add friend"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue