Sha256: 74dcde63938526159787e3a2418802ae1a168c3ead42419c3f8d958ef333afb0

Contents?: true

Size: 1.87 KB

Versions: 56

Compression:

Stored size: 1.87 KB

Contents

= CMOR CMS

= End-User documentation

Please look at the[link:doc] Folder.

= Migrating from 1.x.x to 2.0.0

Add active_admin-awesome_nested_set to your gemfile, if you are using activeadmin:

    # Gemfile
    gem 'active_admin-awesome_nested_set'

= Prerequisites

if you are using activeadmin as backend, cmor_cmss comes with admin files to provide a backend. In that case, you'll need active_admin-awesome_nested_set. Add it to your gemfile:

    # Gemfile
    gem 'active_admin-awesome_nested_set'

You may need to add therubyracer to your Gemfile:

    # Gemfile
    gem 'therubyracer'

= Installation

Add it to your bundle:

  # Gemfile:
  gem 'cmor_cms'

Install your bundle:

  > bundle install

Install the intializer:

  > rails g cmor:cms:install

Generate migrations and migrate:

  > rake cmor_cms:install:migrations
  > rake db:migrate

= 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 cmor:cms:db:populate!

= Linking to pages

    <%= link_to 'My Page', page_path(i18n_locale: I18n.locale, page: 'my-page') %>

= Using partials form the database in other controllers

    # app/controllers/application_controller.rb
    class ApplicationController < ActionController::Base
      prepend_view_path ::Cmor::Cms::PartialResolver.instance
      ...
    end

= Using the navigation helper

    # app/controllers/application_controller.rb
    class ApplicationController < ActionController::Base
      helper Cmor::CmsHelper
      ...
    end

Then you can render navigation in your views:

    # app/views/_navigation.rb
    = cms_render_navigation(:main)

= Running specs

    gem install bundler
    bundle
    cd spec/dummy && rake db:migrate RAILS_ENV=test && cd ../..
    guard

= License

This project rocks and uses MIT-LICENSE.

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
cmor_cms-0.0.17.pre README.rdoc
cmor_cms-0.0.15.pre README.rdoc
cmor_cms-0.0.14.pre README.rdoc
cmor_cms-0.0.13.pre README.rdoc
cmor_cms-0.0.12.pre README.rdoc
cmor_cms-0.0.11.pre README.rdoc
cmor_cms-0.0.10.pre README.rdoc
cmor_cms-0.0.9.pre README.rdoc
cmor_cms-0.0.8.pre README.rdoc
cmor_cms-0.0.7.pre README.rdoc
cmor_cms-0.0.6.pre README.rdoc
cmor_cms-0.0.5.pre README.rdoc
cmor_cms-0.0.4.pre README.rdoc
cmor_cms-0.0.3.pre README.rdoc
cmor_cms-0.0.2.pre README.rdoc
cmor_cms-0.0.1.pre README.rdoc