Make your rails console
awesome
—— Rails console pro tips
Bruce Li
toyroom.bruceli.net
@ascendbruce
Live Demo
Danger
awesome_rails_console
• gem "awesome_rails_console"
• bundle install
• rails generate awesome_rails_console:install
Save typing with ~/.pryrc
class Dev
def self.me
User.find_by_email(
"example@example.com"
)
end
end
Debugging with byebug
• binding.pry
• next
• step
• continue
• caller / wtf?
• break N
• break --disable-all
• exit-program
conclusion
awesome_rails_console
install
today
Awesome
We are hiring
Feedback welcome!
tweet with #rubysg or
@ascendbruce
Questions?
@ascendbruce
toyroom.bruceli.net
awesome_rails_console
Search this gem by the way

Make your Rails console AWESOME (Ruby SG meetup 2016-03-29)