Last Updated: February 25, 2016
·
7.656K
· miguelperez

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.