undefined method `body=' NoMethodError in Ruby on Rails

Posted on 12 June 2006

Not a reserved word or magic fieldname this time. But apparantly "response" is something special in Rails, "request" is too. So when I attempted to use the instance variable @response I got a NoMethodError:


undefined method `body=' for #<Response:0x38f29b0>

I'll have to remember to stay clear of it in the future.

Got something to say?