Skip to content

Instantly share code, notes, and snippets.

@aaronfeng
Created May 29, 2011 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronfeng/998171 to your computer and use it in GitHub Desktop.
Save aaronfeng/998171 to your computer and use it in GitHub Desktop.
pry cd into method error
pry(main)> cd PeopleController
pry(PeopleController):1> ls -M
[:create, :destroy, :edit, :index, :new, :show, :update]
pry(PeopleController):1> cd method(:show)
NameError: undefined method `show' for class `Class'
from /Users/afeng/.rvm/gems/ruby-1.9.2-p180/gems/pry-0.8.3/lib/pry/commands.rb:734:in `eval'
pry(PeopleController):1> cd method(show)
NameError: undefined local variable or method `show' for PeopleController:Class
from /Users/afeng/.rvm/gems/ruby-1.9.2-p180/gems/pry-0.8.3/lib/pry/commands.rb:734:in `eval'
pry(PeopleController):1> cd method('show')
NameError: undefined local variable or method `show' for PeopleController:Class
from /Users/afeng/.rvm/gems/ruby-1.9.2-p180/gems/pry-0.8.3/lib/pry/commands.rb:734:in `eval'
pry(PeopleController):1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment