Displaying 1 result from an estimated 1 matches for "parent_app".
2011 Jul 25
3
Rails 3.1 Engines: Full vs. Mountable
Hi all,
I was hoping someone could please clarify the differences between a
full engine and a mountable one.
I have noticed the following:
** Full Engine **
- With a full engine, the parent application inherits the routes from
the engine. It is not necessary to specify anything in parent_app/
config/routes.rb. Specifying the gem in Gemfile is enough. The
engine routes are specified as:
# my_engine/config/routes.rb
Rails.application.routes.draw do
# whatever
end
- No namespacing of models, controllers, etc. These are immediately
accessible to the parent application.
** Mountable...