I created a "Page" class and rolled in Acts as Versioned. I received the following error: uninitialized constant ActiveRecord::Acts::Versioned::ClassMethods::Inflector /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ dependencies.rb:442:in `load_missing_constant' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ dependencies.rb:77:in `const_missing' /usr/lib/ruby/gems/1.8/gems/acts_as_versioned-0.2.3/lib/ acts_as_versioned.rb:120:in `acts_as_versioned' app/models/page.rb:2 app/controllers/pages_controller.rb:5:in `index' script//server:3 Anybody have a suggestion as to how to fix?
on 2009-01-24 06:22
on 2009-01-24 15:17
Go to the acts_as_versioned.rb at line 120 and change the reference to "Inflector" for "ActiveSupport::Inflector". - Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en)
on 2009-01-24 19:10
On Jan 24, 9:16 am, Maurício Linhares <mauricio.linha...@gmail.com> wrote: > Go to the acts_as_versioned.rb at line 120 and change the reference to > "Inflector" for "ActiveSupport::Inflector". As I understand your direction, you want me to change "ActiveSupport::Inflector" to "Inflector." However, Inflector was what was at the line you referenced. (Acts_as_versioned v. 0.2.3) Perhaps you meant to turn "Inflector" to "ActiveSupport::Inflector" instead? I assume this is what you meant, as it introduces a change. I made this change and started up the server. It works. Thanks.