I am having an issue with my Rails localhost Server, all Post calls started returning 405 method not allowed. However there are no problems on our staging and production
You have a route "assets", which is a reserved route in Rails and it is reserved for Rails Asset Pipeline.
If you must use the "assets" route then you need to give Asset Pipeline another mount point by adding the following line in your development.rb or production.rb configuration block:
config.assets.prefix = '/assetz'
And restart your server.
By this all your assets will be mounted on "/assetz" and you will be able to use POST requests on "/assets".
Happy coding!
Reference:
1) StackOverflow