title: Ruby on Rails: where should I store modules?
body: <p>I am new to Ruby on Rails and my questions are about the application design, based on Rails 3. There are many data on the internet on the creation of standard websites (such as blogs) on Rails, but my application requires more than just "post and read" and I am not sure how to implement that.</p>
  
  <p>The idea:</p>
  
  <ol>
  <li>The model "Route" includes a number of airlines modules: "Ryanair", "easyJet", etc.</li>
  <li>The "Route.Update" method calls the "UpdateRoutes" on each airline module (for example, "Ryanair.UpdateRoutes", "easyJet.UpdateRoutes")</li>
  <li>It should work the same way with more models (such as "Flight.find") and more airlines ("Delta.FindFlights")</li>
  </ol>
  
  <p>The questions:</p>
  
  <ol>
  <li>Where should I store all the modules? I don't see any app/modules folder in Rails.</li>
  <li>If my modules require gems, should I include them in the modules or in the models (where they are actually used)?</li>
  <li>I want to make my application scalable. For example, I want to add a new working airline (module) without changing any code in "Route", "Flight" or any other model. I imagine something like the method "IncludeAirlines" which would go through modules/airlines/<em>name</em>.rb, include every module and call the needed method of it (such as <em>name</em>.UpdateRoutes). Is there any better way to implement that in Ruby on Rails?</li>
  </ol>