views:

23

answers:

1

I have built a web application. This application is very specialized for just one task. In a new project, I'd like to reuse some database, model and controller I developed for the previous application. I don't need al the logic just some section.

I don't want to cut and past pieces of models and controllers.

Which is the best approach/strategy to accomplish this task ?

Do I have to create a plugin ?

A: 

Yes, you can reuse some of your models and controllers via Rails Engines. Check out this Railscasts.

jpemberthy