Tested under Rails 3.1.1
First install gems for pry session, e.g.
gem install pry pry-doc awesome_print bundler
bundler
is required so that we can load Gemfile in Rails project.
Then just download rpry
file into a directory which is in PATH
and make it executable. Go to your Rails project root and run
rpry
Or start in production environment:
rpry production
Gem rails-console-pry is created from this gist