RubyMine 2018.3 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>"

Last modified: 6 December 2018

See Also

Language and Framework-Specific Guidelines: