I have a Rails application that will publish some data in another Rails application. For some reason, I don't want to use ActiveResource, so I used something like:
res = Net::HTTP.post_form(URI.parse('http://localhost:3030/support_requests/new'),
{'from'=>'somebody', 'due'=>'2009-03-31'})
It happens that another application throws an InvalidAuthenticityToken . This makes sense since I did not send any authentication token.
My question is: how can I make one application to send the correct authentication token to another?
source
share