Does the use of Engines in Rails 4 work the same way as in Rails 3.x?

Asked

Viewed 149 times

1

Through several searches in the last few days regarding modularization of applications with Rails, I found vast material regarding Engines in Rails 3.x, but practically nothing referring to Rails 4. I asked for references to a friend and he told me that in version 4 of the framework, modularization shall be made exclusively through Gems. I found it kind of absurd, given the apparent ease that the Engines provide.

Question:

In Rails 4 the use of Engines takes place in the same way as its previous versions (3.x)?

1 answer

1


From what I understand, support for so-called plugins has been discontinued in Rails 4. However, when creating a new engine this is transparent. However what you do when generating a new engine is actually create a Gem.

In the guide you already have a tutorial explaining all the steps to create an engine in Rails 4.

http://guides.rubyonrails.org/engines.html

Browser other questions tagged

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