Forum: Ruby on Rails classic_pagination error in rails-2.2

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
C5c0e0499446b84fd3bcc61cf7862539?d=identicon&s=25 Thani Ararsu (thaniyarasu)
on 2008-11-18 14:09
uninitialized constant ActionController::Pagination::Inflector

vendor/plugins/classic_pagination/lib/pagination.rb:132:in `paginate'
app/controllers/info_controller.rb:117:in `photo'
-e:2:in `load'
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-11-18 14:46
(Received via mailing list)
The Inflector is now ActiveSupport::Inflector. A reminder, if you
needed one, that classic pagination is unmaintained.

85f8b7bbe07bff22e0b38cca818cf692?d=identicon&s=25 Luke Pearce (kule)
on 2008-11-19 11:50
You need to change two lines in the pagination.rb file.

From this:

options[:singular_name] ||= Inflector.singularize(collection_id.to_s)
options[:class_name]  ||= Inflector.camelize(options[:singular_name])

To this:

options[:singular_name] ||=
options[:class_name]  ||=
47e0224e35459fc27bd3c01952425c69?d=identicon&s=25 Hasham (Guest)
on 2008-11-24 11:43
(Received via mailing list)
Or install updated plug from

or by running

script/plugin install git://

On Nov 19, 3:50 pm, Luke Pearce <>
Ebd1c4256c1ece3469d2ccf3031cb6c5?d=identicon&s=25 (Guest)
on 2008-11-30 19:11
(Received via mailing list)
Thanks everyone for the help.  I got classic pagination installed, as
well as scaffolding.  Still getting errors.
 NameError in EventsController#index

undefined local variable or method `add_instance_variables_to_assigns'
for #<EventsController:0xb777ef2c>

Any ideas?  Should I just throw away (or burn) this book and buy
something newer?  Thanks
40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2008-11-30 21:10
(Received via mailing list)
On Sun, Nov 30, 2008 at 9:59 AM,

Hi, this really depends on the version of Rails installed versus the
of Rails the
book uses.  I would recommend the PDF for "Agile Web Development with

Good luck,

This topic is locked and can not be replied to.