title: Ruby on rails SaaS application where to begin, what tools to use
body: <p>I'm at the point in my application where I would like to integrate a saas solution into my application using ruby on rails. So far everything has been good except I am unsure where to begin.</p>
  
  <p><strong>My Idea:</strong></p>
  
  <p>I would create a <strong>subscription.rb</strong> and <strong>plan.rb</strong> model. A user would belong to <strong>subscription</strong> and subscription would have many users. Next subscriptions would have many <strong>plans</strong> and plans would belong to subscription. I would then add <strong>role</strong> for each plan to limit a user from certain parts of the application maybe using cancan. After setting everything up I would integrate stripe into my application to handle the payment side of things. </p>
  
  <p>The above is how I am thinking of setting this up. It may truly be the wrong concept but that is why I wrote it so you could get an understanding of what I am thinking. I know I could use third party services like recurly, chargify, etc but I am opening my eyes to see if this can be done using a similar a approach. </p>
  
  <ol>
  <li><p>What technologies have you used or prefer to use when creating a saas application?</p></li>
  <li><p>Is my approach wrong? If so what is a better way to approach this?</p></li>
  <li><p>Any tips or advice for creating a saas application such as technologies, ruby on rails tools etc. </p></li>
  </ol>