Rails - Sending XML or JSON

Posted by timWhit on Stack Overflow See other posts from Stack Overflow or by timWhit
Published on 2011-01-15T21:28:09Z Indexed on 2011/01/15 22:53 UTC
Read the original article Hit count: 143

Filed under:
|

I'm new to Rails and trying to send a request to Chargify to cancel a subscription. Their API says I need to send the method DELETE to a xml URL. This isn't a Chargify based question but rather... how would I have a user click a button that then generates this request and sends it within my Rails app? You can view this url to see what I"m trying to do - http://docs.chargify.com/api-subscriptions#cancel. Also it's working fine when I run a command-line test so I know my code works, just now sure how to put it into my Rails app (view/controller). Thanks

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about api