Extract a Rails application into a plugin or engine

I have a Rails 2.3 application that I would like to extract into a plugin or engine. The application has user authentication and basic cms features supported by the ancestor plugin.

I want to extract the logic for the application into a plugin / engine so that I can use this code for future projects, if necessary, with a different "skin" or "theme".

I'm not quite sure that I really understand the difference between plugin and engine concepts, so this will be a good first point.

What is the best approach, are there any good starting points, links, explanations, examples that I should follow. Also, with the release of R3 to consider if there is anything I need to know about this, regarding plugins, etc.

I'm going to start by looking at Ryan http://railscasts.com/episodes/149-rails-engines but obviously this is more than a year ago, so one of the problems I am facing is finding the most relevant and relevant information on to this issue.

All advice and help was greatly appreciated.

+5
source share
3 answers

Actually converting the application is quite complicated. Just create a plugin folder, put the application folder inside, containing all the yor model-views-controllers folders, and what is it.

. rake- . , railscasts , - 2.3.

!

[EDIT: rails3] Rails 3 . gist .

+4

, Rails 3, Rails 2 Rails 3 - . Rails 3

"" Rails- " Rails Core , . Int , EngineX, Rails 3, Rails 3, devise rails, , , , .

+3

- , , , .

, , .

+1

All Articles