8000 GitHub - standardtoaster/comfortable-mexican-sofa: ComfortableMexicanSofa is a powerful CMS Engine for Ruby on Rails 3 applications
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

standardtoaster/comfortable-mexican-sofa

 
 

Repository files navigation

ComfortableMexicanSofa

Gem Version Build Status Dependency Status Code Climate Coverage Status

ComfortableMexicanSofa is a powerful CMS Engine for your Rails 4 applications.

This fork

This fork of Comfy adds a few extra features, most notably support for multi-user authentication through Devise and CanCan. This basically means you can have more than one user and users only have access to specific sites (set by a super admin).

Important: You cannot swap from the vanilla Comfy to this fork, as this version is not considered an 'upgrade' on vanilla. See 'using this fork'.

Using this fork

There are two database migrations that you will need to apply if upgrading from a vanilla Comfy:

Full list of features added by this fork

  • Multi-user authentication through Devise and CanCan.
  • A hook called snippet_form to allow you to display some information on the snippet new/edit page in the administration panel.
  • Support for importing and exporting file fixtures
  • Layout CSS is parsed for Comfy tags just like layout HTML. Be careful with this feature: Some Comfy tags may expect to know about the page they are being rendered on, and will produce unexpected results when they only know about the layout.
  • A seperate head field on layouts that can optionally be rendered by an application layout using the cms_layout_head helper method.
  • A boolean field on Pages called 'include in Nav'. This could be used (but isn't used by default) if you are auto-generating navigation links but want some pages to not appear in the navigation.
  • Mixin for comfy filters to add to any controllers that don't inherit from CmsContentController.

Features

Installation

Add gem definition to your Gemfile:

gem 'comfortable_mexican_sofa', '~> 1.10.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.

ComfortableMexicanSofa::Routing.admin   :path => '/admin'
ComfortableMexicanSofa::Routing.content :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/cms-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 it's 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:text }}
  </body>
</html>

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

For more information please see Wiki pages.

Sofa's Page Edit View

Help and Contact

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


ComfortableMexicanSofa is released under the MIT license

Copyright 2009-2013 Oleg Khabarov, The Working Group Inc

About

ComfortableMexicanSofa is a powerful CMS Engine for Ruby on Rails 3 applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 51.9%
  • JavaScript 44.8%
  • CSS 2.3%
  • CoffeeScript 1.0%
0