Hello everyone, I forced to use @user = User.find_by_sql sql_query in a particular situation in my project. Now I want to paginate the records. How can I paginate the records? Please help me. Thanks in advance -- Posted via http://www.ruby-forum.com/.
Frederick Cheung
2009-Jul-23 11:58 UTC
Re: How can I paginate records find by using find_by_sql
On 23 Jul 2009, at 12:20, Indu RS wrote:> > Hello everyone, > > > I forced to use @user = User.find_by_sql sql_query in a particular > situation in my project. Now I want to paginate the records. How can I > paginate the records?will_paginate etc. can help you with the view helpers on stuff but it will be up to you to modify the sql you generate to get the correct range of records. Fred> Please help me. > > Thanks in advance > -- > Posted via http://www.ruby-forum.com/. > > >