trevorgrayson
trevorgrayson

Reputation: 1867

Shared Controller Logic in Rails Apps

I've worked for several larger clients who have commissioned me to work on multiple rails apps at the same time. Inevitably, this leads to them making one or more feature requests for one app that they expect to be moved to all of the apps, quickly. E.g. A Feedback (email sending) web form. Sharing models betweens apps is pretty straight forward, but sharing controllers and views in a gem/plugin tends to feel a bit wonky.

Are there any best practices that someone could recommend on how to share code like this?

Upvotes: 0

Views: 185

Answers (1)

donnior
donnior

Reputation: 1065

How about packaging your shared code to one gem?

Upvotes: 2

Related Questions