Add Pry binding to debug in Rails Console
After having used Pry to determine correct code, copy it into ControllerAction