Hi, I have a weird problem. The following code: def my_def @pictures = Picture.select_pictures(...) # print out length of @pictures.length -> 0 @pictures_pages, @pictures = paginate(:pictures) end For some reason, the pagination still returns results eventhough the instance variable @pictures is empty. What exactly is :pictures and how does it get cleared. Clearly, after printing out the @pictures.length, there should not be any data paginated and that''s the behavior I want. Has anybody ran into this problem? Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---