Forum: Ruby on Rails Acts as Versioned problem with Inflector (Rails 2.2.2)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6e3d8ebb0811dfdf750edfaac6f4957f?d=identicon&s=25 Ben Wilson (Guest)
on 2009-01-24 06:22
(Received via mailing list)
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?
A91bd6cef23eb3516245a092e196c4da?d=identicon&s=25 Maurício Linhares (mauricio)
on 2009-01-24 15:17
(Received via mailing list)
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)
6e3d8ebb0811dfdf750edfaac6f4957f?d=identicon&s=25 Ben Wilson (Guest)
on 2009-01-24 19:10
(Received via mailing list)
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.
This topic is locked and can not be replied to.