Corrections to pins_controller.rb