[Rails] Re: Using will_paginate with arbitrary sql queries

2009-11-07 Thread mike
You also could use paginate_by_sql 2009/11/7, C K Kashyap : > > Hi All, > I have a situation where I have a task model, tag model and a link > table task_tags. > > In a particular view, I need to display a list of task that have a > certain tags - > For this, I'd need to run a query and get the r

[Rails] Re: Using will_paginate with arbitrary sql queries

2009-11-07 Thread Frederick Cheung
On Nov 7, 5:40 am, C K Kashyap wrote: > Hi All, > I have a situation where I have a task model, tag model and a link > table task_tags. > > In a particular view, I need to display a list of task that have a > certain tags - > For this, I'd need to run a query and get the results that would need

[Rails] Re: using will_paginate

2009-10-22 Thread Frederick Cheung
On Oct 22, 1:48 pm, Eduardo Bueno wrote: > > def index >   @clients = Client.paginate :page => params[:page], :per_page => 5 > end > > and the code in clients/index.html.erb: > > <%= will_paginate @clients %> > > The problem is I don't see any client specification. The pagination is > working f