There's this great post on irb tricks, but what about further customizing Rails console behavior and output?
Awesome print and Hirb are great.
SQL logging is a must for me. In your ~/.irbrc
paste:
require 'logger'
ActiveRecord::Base.logger = Logger.new(STDOUT) if defined?(Rails)
What's your tip/trick/gem of choice?
I've recently written a rails specific console tweaks blog post: https://rbjl.janlelis.com/49-railsrc-rails-console-snippets (as gist)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With