NoMethodError

Hi
I’m new to rails and i have a problem with an exception.
I used masterView to generate a scaffold for a model named page.
list mode work fine, and i can see a row i injected with sql but when i
try to click on show or new i get this exeption (other generated
scaffolds are working ok)
what can i make from this error message and how can i fix it ?

NoMethodError in PageController#view

undefined method `assign_variables_from_controller’ for
#Template:0x4896800

RAILS_ROOT: ./script/…/config/…
Application Trace | Framework Trace | Full Trace

C:/Rails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1860:in
method_missing' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:72:insend’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:72:in
rescue_action_locally' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:29:inrescue_action’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:109:in
perform_action' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:insend’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in
process_without_filters' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:inprocess_without_session_management_support’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in
process_pre_mv' C:/Rails/ruby/lib/ruby/gems/1.8/gems/masterview-0.3.4/lib/masterview/rails_ext/action_controller_reparse_checking.rb:25:inprocess’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in
process' C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:indispatch’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in
handle_dispatch' C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:inservice’
C:/Rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in service' C:/Rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:173:in start_thread' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:162:instart’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:162:in start_thread' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:95:instart’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:92:in each' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:92:instart’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:23:in start' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:82:instart’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in
dispatch' C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59 C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' C:/Rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:inrequire’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
new_constants_in' C:/Rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:inrequire’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
script/server:3
-e:2:in `load’
-e:2

C:/Rails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1860:in
method_missing' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:72:insend’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:72:in
rescue_action_locally' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:29:inrescue_action’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:109:in
perform_action' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:insend’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in
process_without_filters' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:inprocess_without_session_management_support’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in
process_pre_mv' C:/Rails/ruby/lib/ruby/gems/1.8/gems/masterview-0.3.4/lib/masterview/rails_ext/action_controller_reparse_checking.rb:25:inprocess’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in
process' C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:indispatch’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in
handle_dispatch' C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:inservice’
C:/Rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in service' C:/Rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:173:in start_thread' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:162:instart’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:162:in start_thread' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:95:instart’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:92:in each' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:92:instart’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:23:in start' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:82:instart’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in
dispatch' C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59 C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' C:/Rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:inrequire’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
new_constants_in' C:/Rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:inrequire’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
script/server:3

C:/Rails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1860:in
method_missing' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:72:insend’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:72:in
rescue_action_locally' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:29:inrescue_action’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:109:in
perform_action' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:insend’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in
process_without_filters' C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:inprocess_without_session_management_support’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in
process_pre_mv' C:/Rails/ruby/lib/ruby/gems/1.8/gems/masterview-0.3.4/lib/masterview/rails_ext/action_controller_reparse_checking.rb:25:inprocess’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in
process' C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:indispatch’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in
handle_dispatch' C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:inservice’
C:/Rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in service' C:/Rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:173:in start_thread' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:162:instart’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:162:in start_thread' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:95:instart’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:92:in each' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:92:instart’
C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:23:in start' C:/Rails/ruby/lib/ruby/1.8/webrick/server.rb:82:instart’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in
dispatch' C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59 C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:ingem_original_require’
C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' C:/Rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:inrequire’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
new_constants_in' C:/Rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:inrequire’
C:/Rails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' C:/Rails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
script/server:3
-e:2:in `load’
-e:2

Request

Parameters: {“id”=>“1”}

Show session dump


flash: !map:ActionController::Flash::FlashHash {}

Response
Headers: {“cookie”=>[], “Cache-Control”=>“no-cache”}

never mind. i found the answer

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs