Rails::Engine
class Rails::Engine
Rails::Engine
allows you to wrap a specific Rails application or subset of functionality and share it with other applications or within a larger packaged application. Since Rails 3.0, every Rails::Application
is just an engine, which allows for simple feature and application sharing.
Any Rails::Engine
is also a Rails::Railtie
, so the same methods (like rake_tasks
and generators
) and configuration options that are available in railties can also be used in engines.
Creating an Engine
In Rails versions prior to 3-0, your gems automatically behaved as engines, however, this coupled Rails to Rubygems- Since Rails 3-0, if you wa