While running on Rails, there's been hardly a day when you don't pull up rails console. Having basic mode and usage is fine but to spice up things a little bit I would like to share some tricks in this regard.
View Tables
Just run this command and get a glimpse of tables
Sandbox Mode
You can enable sandbox mode, so that commands are rolled back once you exit
Make HTTP Requests
Being lazy to hit a route through chrome or any other browser, just play with app object's methods!
Locate Method Source
Its a kindof search feature that a code editor also offers, but helpful one for the rubyists
Block Returned Output
If you're annoyed from the return value by iterators and other structures, this will let you cool down!
Does it worth time saving?. Let me know inside comments.
Make sure to Love and follow @moiz1524
Top comments (5)
Had no Idea you could make HTTP requests. That seems handy
Yap! Quite a bit. But super useful when you try to inspect responses
indeed. Supplements Postman
Kind of. Just a lazy way to not use Postman
Glad you liked it!