Sha256: 960b577f816648a7c30241a3bc89518b41847fad10851afd64ce989b54df946a

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 KB

Contents

= ECM Module Template

= End-User documentation

Please look at the[link:doc] Folder.


= Prerequisites

  * rails ~> 3.2.8
  * active admin ~> 0.5.0

= Installation

Add it to your bundle:

  # Gemfile:
  gem 'ecm_cms'

Install your bundle:

  > bundle install

Install the intializer:

  > rails g ecm:cms:install

Install the locales

  > rails g ecm:cms:locales

Generate migrations and migrate:

  > rake ecm_cms_engine:install:migrations
  > rake db:migrate

= Configuring localized routing

Add the routes to your routing file:

  # config/routes.rb:
  localized(I18n.available_locales) do
    scope "/:i18n_locale", :constraints => {:i18n_locale => /#{I18n.available_locales.join('|')}/} do 
      # ECM CMS
      Ecm::Cms::Routing.routes(self)
    end  
  end  
  match "/", :to => redirect("/#{I18n.locale}")

= Optional: Generating example/default data

There is a task to prepopulate your database tables with example data.

Warning: *RUNNING THIS WILL DELETE ALL OF YOUR CMS DATA AND REPLACE IT WITH EXAMPLE DATA!*

  > rake ecm:cms:db:populate!

= License

This project rocks and uses MIT-LICENSE.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ecm_cms-1.0.5.pre README.rdoc
ecm_cms-1.0.4.pre README.rdoc