hi all, i want to display 5 orders in a page from an orders table. so i used.... i m getting startDate and endDate as parameters. @orders_pages, @orders = paginate(:orders, :conditions =>["ordered_on > ? and ordered_on < ?",startDate, endDate]) if i get a collection of 15 orders, it displays first 5 order correctly.. but if i press the ''next_page'' link it says undefined variable startDate. plz guide me to solve this problem... thanks in advance. madhan -- 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?hl=en -~----------~----~----~----~------~----~------~--~---