Plugins - ResponseFrom
Add to favoritesThis plugin provides xml_response_from, the opposite of:
respond_to { |want| want.xml { render(:xml => @user.to_xml) } }
More specifically, it sends a request to a server with the Accept HTTP header set to ‘application/xml’, then turns the response into an ActiveRecord object.
