Have you checked your development vs. production databases? If you''re
running in production, then your controller is accessing your
production database, but console defaults to development.
On Dec 6, 10:50 am, "blinking bear"
<blinkingbear-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I can''t figure out why this is, in a controller I have:
> @results = Group.paginated_search("Woot", 1)
> render :text => "#{@results.size}"
>
> this results in 1, which is incorrect
>
> In the console I do the same thing:
>
> @results = Group.paginated_search("Woot", 1)
>
> And I get 4, which is the correct result.
>
> I''ve deleted my index directory and restarted the server but I
still keep
> getting only 1 result on the site.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---