Skip to content


Subversion checkout URL

You can clone with
Download ZIP
CMS that plugs into any Rails 4 app as an engine.
Ruby HTML CSS JavaScript CoffeeScript
Failed to load latest commit information.
app add default locale for area names
bin initial rewrite
config adds boolean `open_in_new_tab` to nav_point
db/migrate add `template` to contentr pages
lib name the page route
spec add default locale for area names
.gitignore always include asset id for all uploader fields
.rspec Initial setup rspec and devise
.travis.yml adds travis
Gemfile always include asset id for all uploader fields
MIT-LICENSE Refactor towards a 'headless' milestone
README.markdown some README stuff
Rakefile initial rewrite
contentr.gemspec allow newer sass version


contentr Build Status



Add contentr to your Gemfile:

gem 'contentr', github: 'metaminded/contentr'

You'll also want to include contentr in your CSS

@import 'contentr';

And in your application.js

//= require contentr/contentr


You get three new methods which you should override in your user model:

  • allowed_to_interact_with_contentr?
  • allowed_to_use_paragraphs?
  • contentr_authorized?

The contentr_authorized? method takes two arguments which are type and object. type is a symbol and either :manage or :see. object is the object for which an action needs to be authorized.

The allowed_to_use_paragraphs? method is used to determine if a user is allowed to use paragraphs, depending on multiple arguments. The first argument is area, which is a String with the name of the name of the effected area. If the second parameter subject is set to a paragraph object the method should only determine if a user is allowed to use the specified subject.

Something went wrong with that request. Please try again.