Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Post the email to the Rails app's restful service
- res = Net::HTTP.post_form(URI.parse(service_url), {'params_name'=> params_value})
- case res
- when Net::HTTPSuccess, Net::HTTPRedirection
- # OK
- else
- res.error!
- end
Add Comment
Please, Sign In to add comment