Change config/routes to use :via => [:get, :post]