Daniel Cohen talks shop
Archive for August, 2011
rails console pry integration
0this gist enables simple support for loading pry console within rails application ,
instead of typing
my-rails-project$ pry -r ./config/environment
just type
my-rails-project$ rails p
just replace script/rails with the content of rails/pry gist
in this method you keep both ‘rails c’ to run rails with IRB and ‘rails p’ to run with pry.
if you want just want pry used instead of irb update config/environments/development.rb with the following