Even though I have worked with a rails application that had Angular on the front-end and used Rails as an API. I am lost on the procedure of setting this up. Right now I have a static website hosted on Amazon S3 that I would like to have a form POST to my Rails API hosted with Heroku.
It should be straightforward using a simple form tag with the method set to post. What have you tried so far?
You’ll need to name the fields as Rails expects them, e.g. widget[name]
.
You may need to turn off request forgery protection for the controller action: ActionController::RequestForgeryProtection::ClassMethods