Dagosi
Dagosi

Reputation: 948

What is the best way to reuse a project in RoR?

I have a "core" project developed in RoR. The problem is that there are several independent projects which have this "core" as they based code, and then they may have new functionalities or changes in views, helpers, controllers, etc. I want that any change in the "core" can be tracked by these other projects. Hence, any change in the "core" will be replicated, or not, on the other projects. I was thinking in gemify the "core" project, but due to the constant changes that the other projects have, this wouldn't be the best solution (is a long process too). That's what I think. Other solution would be to separate some important code into modules. Then I can import this new features in the projects which want to use them.

The "core" project is a pure MVC ruby on rails project.

What do you suggest for this issue?

Thanks in advance.

Upvotes: 3

Views: 176

Answers (1)

Mori
Mori

Reputation: 27789

We have about a hundred Rails sites, each customized from a core engine gem included in all of them. Groups of related sites also use a secondary engine gem. See Rails Engines.

Upvotes: 6

Related Questions