Well then are you sure that the query (conditions etc) that your running on the paginate method should infact return results ? Check the logs and see the query running in the background and see if that query does return some records in the @collection.
Thanks & Regards, Dhruva Sagar. 2009/11/26 femto <femto...@gmail.com> > Yes, the paginate find method in controller works.(Model.paginate blah > blah blah) > but <%= will_paginate @collection %> doesn't work on view. > > > On 11月26日, 上午11时26分, Dhruva Sagar <dhruva.sa...@gmail.com> wrote: > > are you sure you have installed the GEM ? > > > > Thanks & Regards, > > Dhruva Sagar. > > > > > > > > On Thu, Nov 26, 2009 at 8:54 AM, femto <femto...@gmail.com> wrote: > > > Hello all,will_paginate don't work on jruby platform, > > > the Model.paginate find works ok, accepts all kinds of params, > > > this is config.gem > > > config.gem 'will_paginate', :version => '2.3.11', :source => > > > 'http://gemcutter.org', > > > but <%= will_paginate @collection %> doesn't work > > > it always produce nil(so nothing on page). weird. > > > > > -- > > > > > 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@googlegroups.com > . > > > To unsubscribe from this group, send email to > > > rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com><rubyonrails-talk%2Bunsubscrib > e...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > > 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-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.