RubyMine 7.0.2 Web 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

Web Resources:

Last modified: 24 January 2015
comments powered by Disqus