Newbie: undefined method (backtick)body(quote) equals error


#1

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:inerase_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:inrescue_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:insend’
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:inprocess’
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:inhandle_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:inservice’
e:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in run' e:/ruby/lib/ruby/1.8/webrick/server.rb:155:instart_thread’
e:/ruby/lib/ruby/1.8/webrick/server.rb:144:in start' e:/ruby/lib/ruby/1.8/webrick/server.rb:144:instart_thread’
e:/ruby/lib/ruby/1.8/webrick/server.rb:94:in start' e:/ruby/lib/ruby/1.8/webrick/server.rb:89:ineach’
e:/ruby/lib/ruby/1.8/webrick/server.rb:89:in start' e:/ruby/lib/ruby/1.8/webrick/server.rb:79:instart’
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:indispatch’
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:inrequire’
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:inrequire__’
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:inrequire’
script/server:3


#2

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