Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Based on the comments to Toby's answer it seems that you would like to be able to have MVC apps used as a component within a new app. Rails Engines (See <a href="http://rails-engines.org" rel="nofollow noreferrer">http://rails-engines.org</a>) provides this functionality. You simply install the engines gem and place apps in vendor/plugins and its modles/views/controller are all accessible.</p> <p>This does not really conform to HMVC where the controllers in the new app delegate to other controllers. But like Toby I do not see the advantage of that.</p> <p>What is nice about the Engines approach is that you can over ride any of models in the plugin by just adding a version of the model to the new apps app/model folder (same applies for views and controllers)</p> <p>I have overidden app/views/layouts to give my Authentication app/plugin the same look and feel as the application it is included in.</p> <p>For Rails 3 Railtie takes the place of engines and is officially supported (and actually used - Action Mailer is a Railtie plugin. I have not used it myself yet though.</p> <p>Check it out at <a href="http://edgeapi.rubyonrails.org/classes/Rails/Railtie.html" rel="nofollow noreferrer">http://edgeapi.rubyonrails.org/classes/Rails/Railtie.html</a></p> <p>A nice write up on it is also here <a href="http://www.igvita.com/2010/08/04/rails-3-internals-railtie-creating-plugins/" rel="nofollow noreferrer">http://www.igvita.com/2010/08/04/rails-3-internals-railtie-creating-plugins/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload