Redid pins_controller.rb - pasted code to ensure it was verbatim