title: How do I dynamically generate TwiML from my Rails app?
body: <p>I have integrated Twilio through <a href="https://github.com/twilio/twilio-ruby" rel="nofollow">twilio-ruby</a>
  with my Rails app.  The basic SMS and voice capabilities are working as expected, but now I want to extend my functionality.  I would like to be able to generate TwiML in my controller dynamically, save it somewhere (either locally or to a service), and then have Twilio access this XML.  For example, a customer makes an order through my app, TwiML is generated and saved, and then Twilio makes a voice call to my supplier with the new order data.  Keeping concurrent orders in mind, what might the solution look like for this?  What is the best solution for storing the TwiML/XML and then having Twilio access it?  Thank you.</p>