Calling app request on the rails console
This one its pretty easy and helpful as well.
In those cases when you have a strange error on a controller and are on the production console and want to play with the controller code.
app.get('/application/url/here')
That will return the status code of that particular controller action.
Change the controller code and try again.
Written by Miguel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#