Clean up pins_controller.rb by removing comments and the lines for JSON