NoMethodError (undefined method `paginate' for #Class:0x675f980):
app/controllers/manage_controller.rb:25:in `list'
app/controllers/manage_controller.rb:4:in `index'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
Jeff Chen wrote:
I need help.
I input gem'will_paginate' or config.gem 'will_paginate'
but got the undefined method `paginate' for #Class:0x653996c
On 8月26日, 下午11時01分, Raony Vieira ferreira li...@ruby-forum.com
The correct way is config.gem 'will_paginate
Hello Guys
I hope someone can help me
I've been trying but without success to do a pagination using the
will_paginate gem.
When I'm listing all records the system paginates but when I'm doing a
filter to show some records, just show the first five. Someone knows
whats happening?
My code
The only difference in your two methods is the Contract.find...
Not knowing what the search_index or find_by_params methods do
precisely, could you create a single build_conditions method in the
Contract model that returns 'cond' and covers all your search cases to
simplify your
4 matches
Mail list logo