Classic_pagination error in rails-2.2

uninitialized constant ActionController::Pagination::Inflector

load_missing_constant' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.0/lib/active_support/dependencies.rb:77:inconst_missing’
validate_options!' vendor/plugins/classic_pagination/lib/pagination.rb:132:inpaginate’
app/controllers/info_controller.rb:117:in photo' -e:2:inload’

The Inflector is now ActiveSupport::Inflector. A reminder, if you
needed one, that classic pagination is unmaintained.


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] ||=

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

Or install updated plug from

or by running

script/plugin install git://

On Nov 19, 3:50 pm, Luke P. [email protected]

On Sun, Nov 30, 2008 at 9:59 AM, [email protected]
[email protected]wrote:

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 D. with

Good luck,


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs