MS search and index works

This commit is contained in:
maxwell 2010-08-19 12:40:50 -07:00
parent 756278f498
commit 35f6856380
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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"