Hacker News new | comments | show | ask | jobs | submit login
Rails Console Tips (37signals.com)
137 points by sathishmanohar 1864 days ago | hide | past | web | 4 comments | favorite

My personal favourite:

    gem install pry
    pry -r ./config/environment
(or add pry-rails to your Gemfile)


Pry is indeed amazing.

Don't miss the various extensions which are out there:


You can give it basic debugger stepping abilities, you can do remote sessions, you can have it automatically drop in a REPL before an exception, repair it, and carry on, it's amazing. Really shows off the power of ruby.

Don't forget Ripl, either: https://github.com/cldwalker/ripl

it would be nice to have a community site where people can share some tricks in any programming languages/tools.

Similar site I have been waiting for since Feb: http://rubyreloaded.com/trickshots/

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact