I have a form on another website (using a different backend) that I want to be able to POST to my Rails application (on a different domain).
- How do I generate a valid authenticity token for the external form so that my Rails app will accept it?
- Assuming I can do the answer to the above question--is there anything else special I need to do to make this work? Apart from the authenticity token, the rest of it seems pretty straightforward to me...
Thanks for the help!
You can't generate an autenticity token from outside your Rails app. What you can do, is to disable the token protection only for this action and use a custom implementation based on a before_filter.
You could just remove the check by adding a filter like: