change callback to post in routes.rb