# Acts as Versioned problem with Inflector (Rails 2.2.2)

**URL:** <https://www.ruby-forum.com/t/acts-as-versioned-problem-with-inflector-rails-2-2-2/158517>\
**Category:** Rails\
**Created:** [January 24, 2009, 6:22am UTC](https://www.ruby-forum.com/t/acts-as-versioned-problem-with-inflector-rails-2-2-2/158517 "2009-01-24T06:22:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blacknight](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c68b51/32.png) [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Post date:** [January 24, 2009, 6:22am UTC](https://www.ruby-forum.com/t/acts-as-versioned-problem-with-inflector-rails-2-2-2/158517/1 "2009-01-24T06:22:03Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![blacknight](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c68b51/32.png) [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Post date:** [January 24, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-problem-with-inflector-rails-2-2-2/158517/2 "2009-01-24T15:17:22Z")

</div>

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/](http://alinhavado.wordpress.com/) (pt-br) | [http://blog.codevader.com/](http://blog.codevader.com/)  
(en)

---

<div class="post-metadata">

**Author:** ![blacknight](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c68b51/32.png) [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Post date:** [January 24, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-problem-with-inflector-rails-2-2-2/158517/3 "2009-01-24T19:10:55Z")

</div>

On Jan 24, 9:16 am, Maurício Linhares [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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.
