Ferret difference between site and console

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.

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.