Update clicks_controller.rb

small functional programming refactor