Re: ** UPDATE** Adding SEARCH functionality to a website

Marnen Laibow-Koser
Tue, 27 Oct 2009 21:22:45 -0000

RubyonRails_newbie wrote:
> Update: I seem to have some success in returning a value in the log,
> but it still isn''t  displaying it in the browser..
>
> the log shows
>
> total hits: 2, results delivered: 2
>
> however, why is the data not displaying in the browser?
>
> Here''s how my controller looks so far:
>
>
> def search
>
>     @title = " Search"
>     if params[:q]
>     query = params[:q]
>     # First find the user hits...
>
>     users = User.find_with_ferret(query, :limit => :all)
>
>   @users = users.collect { |user| info.user }

Did you mean user.info ?
>
>
>   end
>
>
> so the log finds 2 records, but nothing visible to the user.. any
> ideas?
>
>
> On 27 Oct, 20:42, RubyonRails_newbie
<craigwest...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
--
Posted via http://www.ruby-forum.com/.