made compatible with rails 4.0.0.beta1

- updated root route to specify :post, to be compliant with Rails 4