adding  :via => [:post] in routes to comply to rails 4