Bill Spornitz
2006-Jan-16 17:23 UTC
[Rails] Newbie: undefined method (backtick)body(quote) equals error
I have set up a simple test of a questionnaire; I have a set of questions which have a many to many relationship with a set of possible responses. I have it working so a user can set the range of responses for a given question, but when trying any of the CRUD operations on the responses side, I get a cryptic error, to which I see no reference to online. Thanks for any tips that may clear this up for me... -Bill error text: undefined method (backtick)body=(quote) for #<Response:0x3828a78> RAILS_ROOT: ./script/../config/.. e:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1498:in `method_missing'' e:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:694:in `erase_render_results'' e:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:712:in `erase_results'' e:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/rescue.rb:28:in `rescue_action'' e:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/rescue.rb:108:in `perform_action'' e:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in `send'' e:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in `process_without_session_management_support'' e:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session_management.rb:116:in `process'' e:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in `dispatch'' e:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:117:in `handle_dispatch'' e:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:83:in `service'' e:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' e:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' e:/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'' e:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start'' e:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'' e:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start'' e:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each'' e:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start'' e:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'' e:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start'' e:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:69:in `dispatch'' e:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/servers/webrick.rb:59 e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' e:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in `require'' e:/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/server.rb:28 e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' e:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in `require'' script/server:3 -- Posted via http://www.ruby-forum.com/.
Bill Spornitz
2006-Jan-17 19:04 UTC
[Rails] Re: undefined method (backtick)body(quote) error SOLVED
I had created a class called Response; this was overriding another, more important class called Response ;-> (in the HTTP context of request/response, no doubt...) -Bill Bill Spornitz wrote:> I have set up a simple test of a questionnaire; I have a set of > questions which have a many to many relationship with a set of possible > responses. I have it working so a user can set the range of responses > for a given question, but when trying any of the CRUD operations on the > responses side, I get a cryptic error, to which I see no reference to > online. > > Thanks for any tips that may clear this up for me... > > > -Bill > > error text: > > undefined method (backtick)body=(quote) for #<Response:0x3828a78> >-- Posted via http://www.ruby-forum.com/.