Comfortable Mexican Sofa (CMS) ============================== What is this? ------------- ComfortableMexicanSofa is a micro CMS implemented as a Rails 3.* engine. This CMS is not a full-blown application like RadiantCMS. It's more like the ComatoseCMS, only more modern and infinitely more powerful and flexible. ComfortableMexicanSofa can function as a stand-alone installation, but it's designed to be used as an extension to your Rails application. If you have any (static) content that needs to be managed this CMS will handle it. This CMS also allows high level of integration. You can easily use page content anywhere within your app, and even use page content as renderable templates from inside your controllers. You may also reuse CMS's admin interface for your own admin backend. Installation ------------ Add gem definition to your Gemfile: config.gem 'comfortable_mexican_sofa' Then from the Rails project's root run: bundle install rails g cms rake db:migrate At this point you should have database structure created, some assets copied to /public directory and initializer set up: ComfortableMexicanSofa.configure do |config| config.cms_title = 'ComfortableMexicanSofa' config.authentication = 'ComfortableMexicanSofa::HttpAuth' end # Credentials for HttpAuth ComfortableMexicanSofa::HttpAuth.username = 'username' ComfortableMexicanSofa::HttpAuth.password = 'password' Usage ----- Now you should be able to navigate to http://yoursite/cms-admin ### Step 1: Create Site CMS allows you to run multiple sites from a single installation. Each site is attached to a hostname. For the first time you'll be prompted to set up the initial site. Hostname will be pre-populated so just choose a label. ### Step 2: Create Layout Before creating pages and populating them with content we need to create a layout. Layout is the template of your pages. It defines some reusable content (like header and footer, for example) and places where the content goes. A very simple layout can look like this: