How to Accept POST XML to Rails Controller



I have a web service that will be sending a POST to my site in the form of XML i am trying to figure out how to actually receive that XML data.


This will not be a file it will be a POST request of data


I can set up a route for it to post to but how can i caputure the info and send it to nokogiri so i can parse it


post URL is



http://ift.tt/1HlStne


Routes:



resources :post_everywhere do
post :create_account
end


controller:



class PostEverywhereController < ApplicationController
def create_account

/**** How do i capture the info here ****/

end
end

No comments:

Post a Comment