I’m trying to get some pagination to work (I’m just starting with
rails). I’m using Rails 2.0.2 (Mac OS 10.5.2). I installed the
will_paginate gem, and it shows up as installed if I run ‘gem
list’ … (will_paginate (2.2.1)).
However, I’m getting an error anytime I try to use a paginate command
@articles = Article.paginate :page => params[:page]
NoMethodError: undefined method `paginate’ for #Class:0x114b7ec
I added ‘require “will_paginate”’ to environment.rb, but it doesn’t
seem to make any difference.
What’s the secret handshake required to get pagination to work with
Rails 2.0.2? Is there a tutorial somewhere that shows all the
required steps to get pagination (particularly, using will_paginate)
to work with 2.0.2?