I updated my windows rails installation from 0.13.1 to 0.14.1 and now
scaffolding does not work any longer against my Oracle 10g database.
I have one table banks and sequences rails_sequence and banks_seq.
I call "script/generate scaffold Bank Admin" and get banks views and
a banks controller but no admin views. Calling the banks index
(running webrick) results in the following error:
-------------------------------------------
NameError in Banks#index
uninitialized constant Bank
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.1/lib/active_support/
dependencies.rb:198:in `const_missing''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.1/lib/active_support/
core_ext/string/../../inflector.rb:142:in `const_get''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.1/lib/active_support/
core_ext/string/../../inflector.rb:142:in `constantize''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.1/lib/active_support/
core_ext/string/../../inflector.rb:141:in `inject''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.1/lib/active_support/
core_ext/string/../../inflector.rb:141:in `each''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.1/lib/active_support/
core_ext/string/../../inflector.rb:141:in `inject''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.1/lib/active_support/
core_ext/string/../../inflector.rb:141:in `constantize''
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.1/lib/active_support/
core_ext/string/inflections.rb:46:in `constantize''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/
action_controller/pagination.rb:185:in `paginator_and_collection_for''
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/
action_controller/pagination.rb:123:in `paginate''
./script/../config/../app/controllers/banks_controller.rb:8:in `list''
./script/../config/../app/controllers/banks_controller.rb:3:in `index''
This error occured while loading the following files:
bank.rb
------------------------------------------
This worked in version 0.13.1 - what is going wrong?
thank you for any help,
kind regards
Sven