Loft

Media assets manager for Character CMS.

Installation

Add to Gemfile:

gem 'loft'

Setup a new model for assets asset.rb:

class Asset
  include Mongoid::Document
  include Mongoid::LoftAsset
end

Add controller for asset model to make it accesible via CMS, e.g. app/controllers/admin/assets_controller.rb:

class Admin::AssetsController < Admin::BaseController
  mongosteen

  has_scope :by_type
end

Add admin assets controller to routes.rb:

resources :assets

Add to admin.scss:

@import "loft";

Add to admin.coffee character configuration object:

loft: new Loft('Files', 'asset', '/admin/assets')

Notes

  1. Check out kraken.io for image optimization.

Loft family

  • Character: Powerful javascript CMS for apps
  • Mongosteen: An easy way to add restful actions for mongoid models
  • Inverter: An easy way to connect Rails templates content to CMS

License

Copyright © 2015 Slate Studio, LLC. Loft is free software, and may be redistributed under the terms specified in the license.

About Slate Studio

Slate Studio

Loft is maintained and funded by Slate Studio, LLC. Tweet your questions or suggestions to @slatestudio and while you’re at it follow us too.