Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # app.rb contains
- # require 'scaffolding_extensions'
- # my ramaze admin controller
- class AdminController < Controller
- scaffold_all_models()
- def index
- end
- end
- # error:
- ruby start.rb
- /opt/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.0.0/lib/sequel/extensions/inflector.rb:178:in `constantize': "_init" is not a valid constant name! (NameError)
- from /opt/local/lib/ruby1.9/gems/1.9.1/gems/scaffolding_extensions-1.3.6/lib/scaffolding_extensions.rb:64:in `block in all_models'
- from /opt/local/lib/ruby1.9/gems/1.9.1/gems/scaffolding_extensions-1.3.6/lib/scaffolding_extensions.rb:62:in `map'
- from /opt/local/lib/ruby1.9/gems/1.9.1/gems/scaffolding_extensions-1.3.6/lib/scaffolding_extensions.rb:62:in `all_models'
- from /opt/local/lib/ruby1.9/gems/1.9.1/gems/scaffolding_extensions-1.3.6/lib/scaffolding_extensions/meta_controller.rb:205:in `scaffold_all_models_parse_options'
- from /opt/local/lib/ruby1.9/gems/1.9.1/gems/scaffolding_extensions-1.3.6/lib/scaffolding_extensions/meta_controller.rb:192:in `scaffold_all_models'
- from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/admin/_init.rb:4:in `<class:AdminController>'
- from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/admin/_init.rb:2:in `<top (required)>'
- from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/_init.rb:14:in `require'
- from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/_init.rb:14:in `block in <top (required)>'
- from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/_init.rb:12:in `each'
- from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/_init.rb:12:in `<top (required)>'
- from /Volumes/Data/Projects/Stephan/MLS/src/app/app.rb:23:in `require'
- from /Volumes/Data/Projects/Stephan/MLS/src/app/app.rb:23:in `<top (required)>'
- from start.rb:6:in `require'
- from start.rb:6:in `<main>'
- arx81-249:app admin$
Add Comment
Please, Sign In to add comment