Re: Extending methods in the module Inflector ?

Radek Hnilica
2005-07-19T11:34:34Z

On Tue, Jul 19, 2005 at 11:52:11AM +0100, Richard Livsey
wrote:
> Radek Hnilica wrote:
>
> >Please, pleas, please, is there a way to completly shoot down this
> >autorenaming feature?
> >
> >
> >
>
http://wiki.rubyonrails.com/rails/show/HowtoDisableAutoTableNamePluralisation
>
> In short, add the line:
>
> |ActiveRecord::Base.pluralize_table_names = false
> |
>
> to the bottom of:
>
> |rails_application_path/config/environment.rb
> |
>

:( It does not help.  I write the line on the end of the file and also
in the middle of the file.  Restart server.  But the error is the
same:

 NameError in Pokus#index

uninitialized constant Poku

script/server:49


/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:186:in
`const_missing''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/core_ext/string/../../inflector.rb:59:in
`const_get''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/core_ext/string/../../inflector.rb:59:in
`constantize''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/core_ext/string/../../inflector.rb:58:in
`inject''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/core_ext/string/../../inflector.rb:58:in
`each''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/core_ext/string/../../inflector.rb:58:in
`inject''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/core_ext/string/../../inflector.rb:58:in
`constantize''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/core_ext/string/inflections.rb:44:in
`constantize''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/pagination.rb:169:in
`paginator_and_collection_for''

...

This error occured while loading the following files:
   poku.rb