Hi Sandip, I think it will not solve my problem. It will again find all record and do paginate onto it. I don't think so it will add any limit on the retrieval of records depending on the page. Any ways thanks for your quick reply. Thanks, Tushar
Sandip Ransing wrote: > Hi Tushar, > > not very much sure but may be following line can solve your problem. > > BookPhoto.find(:all, :conditions=>["id=?",params[:id]]).paginate > :per_page > => 3, :page => params[:page] > > Sandip R~ > > On Tue, Jun 9, 2009 at 3:16 PM, Tushar Gandhi < > [email protected]> wrote: > >> It is working fine. >> -- >> Posted via http://www.ruby-forum.com/. >> >> > >> > > > -- > Ruby on Rails Developer > http://sandip.sosblog.com > http://funonrails.wordpress.com > www.joshsoftware.com -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

