I am trying to debug my small application without creating a price due to AssociationTypeMismatch. So I dig up pry, install, watch railscast and Josh screencast and dig into the wiki.
I "cd" the price controller, but it fails. I set <% binding.pry%> to new.html before submitting the code, but Rails says that the "pry" method is unknown. pry is in my updated gemfile and I restarted the server.
I put bind.pry in the create method of my prices_controller.rb, and Rails happily raves through it to throw an error that I already saw, not a pause, etc. I expected.
Looking at the price model, I am not experienced enough to know what I should look for. What do I not notice? thanx, sam
source share