• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Irb Tips and Tricks
 

Irb Tips and Tricks

on

  • 2,405 views

Quick lightning talk on some cool things you can do in IRB and the Rails Console. There's more in there than you think!

Quick lightning talk on some cool things you can do in IRB and the Rails Console. There's more in there than you think!

Statistics

Views

Total Views
2,405
Views on SlideShare
1,312
Embed Views
1,093

Actions

Likes
0
Downloads
4
Comments
0

7 Embeds 1,093

http://www.railsperformance.com 613
http://railsperformance.blogspot.com 465
http://feeds.feedburner.com 7
http://www.hanrss.com 4
http://www.linkedin.com 2
http://coderwall.com 1
http://5412562237506005821_6df4b960230db62b8d8bfd08849953a2457f3ce6.blogspot.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Irb Tips and Tricks Irb Tips and Tricks Presentation Transcript

  • Irb Tips and Tricks John McCaffrey Freelance Consultant @J_McCaffrey RailsPerformance.net
  • Here we go!• Irb is awesome• Common Usage patterns• Customizing Irb• Rails Console• References
  • In case I don’t finish...• IRB is extremely powerful and Customizable• A useful tool in your toolkit• Worth finding ways to improve your usage• Ask your friends, share your ideas• ....some compatibility issues in Rails 3
  • Irb is Awesome! http://tryruby.org/
  • IRB 101• printing, dates, calculations• object inspector• requiring files• file scripting
  • Tweak it• irb console settings• custom methods (I needed logging and acts_as_versioned inspection)• vim• irb subsession
  • What I didn’t cover• Debugging• Additional libraries• More Meta Programming• DRY concepts, testing, workflow
  • Resources++• Why’s IRB Guide http://bit.ly/_why_irb• http://cheat.errtheblog.com/s/rails_console• http://bit.ly/thoughtbot-irb• http://bit.ly/tagaholic-irb• https://github.com/cldwalker/ripl• http://bit.ly/stackoverflow-irb• http://bit.ly/pivotal-debug-irb
  • Resources+++• http://railscasts.com/episodes/48-console-tricks• http://slash7.com/2006/12/21/secrets-of-the-rails- console-ninjas• http://errtheblog.com/posts/24-irb-mix-tape• http://drnicwilliams.com/2006/10/12/my-irbrc-for- consoleirb• http://vimcasts.org/episodes/running-vim-within-irb