View
418
Download
3
Category
Preview:
Citation preview
Make your rails console awesome—— Rails console pro tips
Bruce Li toyroom.bruceli.net @ascendbruce
Live DemoDanger
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
todayAwesome
We are hiring
Feedback welcome!
tweet with #rubysg or@ascendbruce
Questions?
@ascendbrucetoyroom.bruceli.netawesome_rails_console
Search this gem by the way
Recommended