Extracting a Rails application into a plugin or engine

Posted by Globalkeith on Stack Overflow See other posts from Stack Overflow or by Globalkeith
Published on 2010-06-11T20:07:43Z Indexed on 2010/06/12 7:52 UTC
Read the original article Hit count: 268

I have a Rails 2.3 application which I would like to extract into a plugin, or engine. The application has user authentication, and basic cms capabilities supported by ancestry plugin.

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

I'm not entirely sure I actually understand the difference between plugin and engine concepts, so that would 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, is there anything that I should be aware of for that, with regards to plugins etc.

I am going to start off by watching Ryan's http://railscasts.com/episodes/149-rails-engines but obviously thats over a year old now, so one of the challenges I'm faced with is finding the most up to date and relevant information on this subject.

All tips and help gratefully received.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby-on-rails-plugins