Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
CMS that plugs into any Rails 4 app as an engine.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app Find pages if the slug is used more than one time.
bin initial rewrite
config adds boolean `open_in_new_tab` to nav_point
db/migrate add Contentr::AlternativeLink
lib check if page in original language has any paragraphs before showing …
spec get rid of deprecation warning
vendor/assets/javascripts initial rewrite
.gitignore Can't even remember :-(
.travis.yml adds travis
Gemfile add gems for debugging purposes
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.