Call ActionController methods from the Rails console

/ Published in: Rails
Save to your folder(s)

The 'request' and 'response' objects are chock full of useful info. But console can't usually access them. Here's how:
start the server with the -u option, insert a breakpoint where you would like to have access to the controllers/helpers/etc. When finished, just type 'cont' to continue execution

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.