pry/pry — Issue #480: binding.pry statement generates: undefined method `pry' for #<Binding:0x007facf4d8bb18> 
Author: dleatham
Created: 2012-02-20 20:07:13+00:00
State: open

I'm experiencing the same issue as Issue #388 ( which was closed without a published resolution.) I'm running Ruby 1.9.3p0 and Rails 3.1.3.

After installing pry I tested it out in IRB-replacement mode and it works great. Then I put it in my Gem file for my development environment (my project is not yet in production.) I then added this line into my controller's "new" method:
binding.pry
I get this error:
undefined method `pry' for #

Per Issue #388 I tried adding the line: require "pry" but then I get the error:
cannot load such file -- pry

I also tried moving this out of my development gem set so that it loads with all the standard gems. I rebuilt the Gemfile.lock to make sure all dependancies were refreshed. I still get the "undefined method" error.

I've had some recent problems with RVM so it is uninstalled. Here is the pry location:

$ which pry
/usr/local/Cellar/ruby/1.9.3-p0/bin/pry

Not sure if Pry has any dependencies or assumptions around RVM...

Thoughts?