Skip to content

Instantly share code, notes, and snippets.

@edgar
Created February 6, 2014 17:20
Show Gist options
  • Save edgar/8848626 to your computer and use it in GitHub Desktop.
Save edgar/8848626 to your computer and use it in GitHub Desktop.
Rails 2.3.* console using Pry
#!/usr/bin/env ruby
console = File.expand_path(File.dirname(__FILE__), '.') + "/script/console"
exec console, *ARGV, '--irb=pry'
@edgar
Copy link
Author

edgar commented Feb 6, 2014

First install Pry gem:
gem install pry pry-doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment