RubyMine 8.0 Help

Embedding a Rails Mountable Engine into a Rails Application

To embed a Rails mountable engine into a Rails application, follow these general steps

  1. Open the target Rails project, where an engine should be embedded.
  2. Open for editing the Gemfile, and add the following line:
    gem '<engine name>', :path => "<absolute path to the Rails mountable engine project>"
  3. Open for editing Config/routes.rb, and add the following line:
    mount <engine name>::Engine, :at => "/<engine name>"

See Also

Language and Framework-Specific Guidelines:

Last modified: 5 November 2015