Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 222
Dagosi Avatar asked Jan 30 '26 20:01

Dagosi


1 Answers

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.

like image 119
Mori Avatar answered Feb 01 '26 09:02

Mori



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!