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]
|
||||
|
||||
def index
|
||||
puts "awesome"
|
||||
@groups_array = current_user.groups.collect{|x| [x.to_s, x.id]}
|
||||
|
||||
puts params.inspect
|
||||
unless params[:q]
|
||||
@people = Person.all
|
||||
render :index
|
||||
|
|
|
|||
|
|
@ -33,4 +33,4 @@
|
|||
= form_for Request.new do |f|
|
||||
= f.select(:group_id, @groups_array)
|
||||
= f.hidden_field :destination_url, :value => person.email
|
||||
= f.submit
|
||||
= f.submit "add friend"
|
||||
|
|
|
|||
Loading…
Reference in a new issue