Embedding a Rails Mountable Engine into a Rails Application
To embed a Rails mountable engine into a Rails application, follow these general steps
- Open the target Rails project, where an engine should be embedded.
- Open for editing the
Gemfile, and add the following line:
gem '<engine name>', :path => "<absolute path to the Rails mountable engine project>"
- Open for editing
Config/routes.rb, and add the following line:
mount <engine name>::Engine, :at => "/<engine name>"
Language and Framework-Specific Guidelines:
Last modified: 10 December 2015