I am working on multiple projects, which most of them have common controllers and views.
Is there a way to be able to copy all the common code in a script or something?
Any ideas on this
Thanks
I am working on multiple projects, which most of them have common controllers and views.
Is there a way to be able to copy all the common code in a script or something?
Any ideas on this
Thanks
You're looking for a rails engine, which is a gem you can use in other projects. The gem provides controllers, views, etc. Devise is maybe one of the best examples of this, providing an authentication framework.
First promising hit on Google for how to make one was this, but I'm sure you can find more.