I have a class named Address. I used the script/generate scaffold
Address command to create the default objects. It created
addresses_controller, address.rb and the standard layouts. When I try
to view the address list I get an error:
NameError (uninitialized constant Addres):
d:/apps/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt/dependencies.rb:183:in `const_missing''
d:/apps/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt/core_ext/string/../../inflector.rb:53:in `const_get''
d:/apps/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt/core_ext/string/../../inflector.rb:53:in `constantize''
d:/apps/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt/core_ext/string/../../inflector.rb:52:in `inject''
d:/apps/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt/core_ext/string/../../inflector.rb:52:in `each''
d:/apps/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt/core_ext/string/../../inflector.rb:52:in `inject''
d:/apps/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt/core_ext/string/../../inflector.rb:52:in `constantize''
d:/apps/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_suppo
rt/core_ext/string/inflections.rb:44:in `constantize''
d:/apps/ruby/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controll
er/pagination.rb:169:in `paginator_and_collection_for''
d:/apps/ruby/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controll
er/pagination.rb:111:in `paginate''
app/controllers/addresses_controller.rb:16:in `list''
Looks like the second ''s'' is getting trimmed off of Address.
Anyone
else experience this problem?
Thanks,
Wayne Hearn