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

RubyonRails_newbie
Tue, 27 Oct 2009 21:32:03 -0000

I''ve changed that too, and that hasn''t changed the end
result....


The log definately shows the user, but nothing in the browser...

what should i write to output the results?

On 27 Oct, 21:22, Marnen Laibow-Koser <rails-mailing-l...@andreas-
s.net> wrote:
> 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-Koserhttp://www.marnen.org
> mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
> --
> Posted viahttp://www.ruby-forum.com/.