|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Acts as Versioned problem with Inflector (Rails 2.2.2)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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@... To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Acts as Versioned problem with Inflector (Rails 2.2.2)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 Sat, Jan 24, 2009 at 2:21 AM, Ben Wilson <dausha@...> wrote: > > 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? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@... To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Acts as Versioned problem with Inflector (Rails 2.2.2)On Jan 24, 9:16 am, Maurício Linhares <mauricio.linha...@...> 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. > Maurício Linhareshttp://alinhavado.wordpress.com/(pt-br) |http://blog.codevader.com/(en) > > On Sat, Jan 24, 2009 at 2:21 AM, Ben Wilson <dau...@...> wrote: > > > 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? > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@... To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@... For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |