Skip to content

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.

View the snippets archive ››

No comments have been left

Got something to say?

About

Paul is a web developer for Kyanmedia web agency. He's lucky enough to write in Ruby on Rails full-time and uses this site to post snippets of code.

Contact

my name at gmail.com

More snippets

Take a look in the archive

Need a website?

Contact my employer. Make sure to check out our portfolio of work.

Hosting

I recommend hostingrails.com