DEV Community

Discussion on: How to use rails console like a boss?

Collapse
 
bengreenberg profile image
Ben Greenberg

One great use I have for it is as an easier way to see what a particular method inside my code is returning. Let's say I have an application helper, and it returns data in a certain way. I could put a debugger in my code, and pause the app at that point to peer inside the method. Or, alternatively, I could call the method directly inside the Rails Console and see what it is doing.