views:

143

answers:

2

Hi! I want to create a framework fo rails application. It will be a rails application but packed into gem (like a Radiant CMS).

It must work like this:

gem install cmsframework

and then:

cmsframework the_app

After that we have a sceleton of rails app without any controllers etc.. - all controllers loaded from cmsframework gem.

If I want to rewrite some files (for example public/styles.css) I must simply create it in my app (the_app).

If I want new functions in my app I can create a plugin. But the main functionalities must be loaded from cmsframework gem.

What is the best way to implement this?

A: 

Are you building this, or are you looking for an existing solution? Here is a list of ruby CMS's the majority of them powered by rails:

http://www.ajaxlines.com/ajax/stuff/article/top_ruby_cms.php

ThinkBohemian
A: 

Maybe start here: http://guides.rails.info/plugins.html. Pay close attention to the parts about adding custom generators and packaging as a gem. This may help as well: http://railscasts.com/episodes/218-making-generators-in-rails-3.

Jarrod