work in progress.
What is static_content?
static_content provides an easy way of defining static content in your application.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install static_content
After install the gem, you just need run the install generator:
$ rails g static_content:install
In your view, just add:
<%=c :sidebar_content, default: "Placeholder Sidebar Content" %>
Please note that a
default option is required. If it hasn't been created, it will be created upon the first request.
This is intended to be used with admin panels such as Typus or ActiveAdmin.
This project rocks and uses MIT-LICENSE.