I was really mystified today trying to figure out how to bump up the response in Rails metal. The default metal generator generates something that looks like the following:
I had mistakenly changed it to 500 and didn’t realize why the app completely broke. It turns out that Rails itself uses a 404 code in the metal response to go up the call chain to the next metal:
So if you want to return from the metal, just send back a 404.
Delicious
Digg This Post
Facebook
Reddit This Post
Related posts:





What I can say is very nice and helpful as well as informative post…really help me
very much more!! Thanks..
Cheers,
gadgettechblog.com
What I can say is very nice and helpful as well as informative post…really help me
very much more!! Thanks..
Cheers,
gadgettechblog.com