Render a layout across multiple sites

Asked

Viewed 78 times

2

I have the following situation, I have several sites with different layouts and databases, but I wanted them to use the same administrative area, the same Gems, because if I need to fix a bug in the administrative area or update a Gem I would update in one place and it would automatically be worth to the other sites, as I could build this.

  • 2

    Create a separate application for the administrative area.

1 answer

2

Friend, I believe you have to use Engines: http://guides.rubyonrails.org/engines.html

Which are a kind of plugin, only more powerful. You can create controllers and screens in the engine and then import in your application as a plugin.

Apparently, the Devise works in the form of an engine.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.