Coder Social home page Coder Social logo

comfortable-mexican-sofa's Introduction

ComfortableMexicanSofa

Gem Version Build Status Dependency Status Code Climate Coverage Status

ComfortableMexicanSofa is a powerful Rails 4 CMS Engine

Features

Installation

Add gem definition to your Gemfile:

gem 'comfortable_mexican_sofa', '~> 1.12.0'

Then from the Rails project's root run:

bundle install
rails generate comfy:cms
rake db:migrate

Now take a look inside your config/routes.rb file. You'll see where routes attach for the admin area and content serving. Make sure that content serving route appears as a very last item.

comfy_route :cms_admin, :path => '/admin'
comfy_route :cms, :path => '/', :sitemap => false

When upgrading from the older version please take a look at Upgrading ComfortableMexicanSofa

Installation for Rails 3

For Rails 3 apps feel free to use 1.8 release

gem 'comfortable_mexican_sofa', '~> 1.8.0'

Quick Start Guide

After finishing installation you should be able to navigate to http://yoursite/admin

Default username and password is 'username' and 'password'. You probably want to change it right away. Admin credentials (among other things) can be found and changed in the cms initializer: /config/initializers/comfortable_mexican_sofa.rb

Before creating pages and populating them with content we need to create a Site. Site defines a hostname, content path and its language.

After creating a Site, you need to make 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:

<html>
  <body>
    <h1>{{ cms:page:header:string }}</h1>
    {{ cms:page:content:rich_text }}
  </body>
</html>

See Wiki entry on available Tags you can use

Once you have a layout, you may start creating pages and populating content. It's that easy.

For more information please refer to Wiki.

Sofa's Page Edit View

Dependencies

As long as you sucessfuly ran bundle install you should be ok. However, Paperclip requires ImageMagick to be installed to handle thumbnail generation.

Help and Contact

GoogleGroups: http://groups.google.com/group/comfortable-mexican-sofa Twitter: @GroceryBagHead


ComfortableMexicanSofa is released under the MIT license

Copyright 2009-2014 Oleg Khabarov


DOGE: DMTBhZjcgUZunCKMpKCJogBXBhQx2h7h5c

comfortable-mexican-sofa's People

Contributors

bgilham avatar calas avatar ctria avatar delynn avatar dougpuchalski avatar emerson avatar gbh avatar glebm avatar hazg avatar hesham avatar holli avatar igmarin avatar jacobmadsen avatar jamiewohletz avatar jhawthorn avatar lis2 avatar marcgreenstock avatar mariozaizar avatar mateusg avatar modsognir avatar obfusk avatar polar avatar rgarver avatar saldan avatar sanemat avatar steamcomputing avatar stephenkubovic avatar tatey avatar towerhe avatar wlangstroth avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.