Guest User

Untitled

a guest
Jun 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. # app.rb contains
  2. # require 'scaffolding_extensions'
  3.  
  4. # my ramaze admin controller
  5.  
  6. class AdminController < Controller
  7.  
  8. scaffold_all_models()
  9.  
  10. def index
  11. end
  12.  
  13. end
  14.  
  15. # error:
  16. ruby start.rb
  17. /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)
  18. 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'
  19. from /opt/local/lib/ruby1.9/gems/1.9.1/gems/scaffolding_extensions-1.3.6/lib/scaffolding_extensions.rb:62:in `map'
  20. from /opt/local/lib/ruby1.9/gems/1.9.1/gems/scaffolding_extensions-1.3.6/lib/scaffolding_extensions.rb:62:in `all_models'
  21. 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'
  22. 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'
  23. from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/admin/_init.rb:4:in `<class:AdminController>'
  24. from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/admin/_init.rb:2:in `<top (required)>'
  25. from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/_init.rb:14:in `require'
  26. from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/_init.rb:14:in `block in <top (required)>'
  27. from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/_init.rb:12:in `each'
  28. from /Volumes/Data/Projects/Stephan/MLS/src/app/controller/_init.rb:12:in `<top (required)>'
  29. from /Volumes/Data/Projects/Stephan/MLS/src/app/app.rb:23:in `require'
  30. from /Volumes/Data/Projects/Stephan/MLS/src/app/app.rb:23:in `<top (required)>'
  31. from start.rb:6:in `require'
  32. from start.rb:6:in `<main>'
  33. arx81-249:app admin$
Add Comment
Please, Sign In to add comment