Unstatic your static content

A lot of times I'll throw up a rails app that includes a handful of "static" pages. About, Contact, etc. are usually just an empty controller and a big view. It's not long before I want to edit some of that content. Editing the view, committing the changes, and deploying just for content updates is really lame. So is trying to custom-fit a full-blown CMS into my existing app. So I made my very first publicly-available rails plugin: unstatic

Now I can just drop a simple call to the unstatic_content() helper anywhere I want editable content, and I'm all set. Other than setting up a password and some extra routes, there's no configuration. It uses my existing views, layouts, etc. I don't have to have a separate /admin section, learn a new templating language, or tweak any code to get it working with my app. It's a quick, drop-in mini-cms for anything written on rails.

Installation and usage instructions in the README.

Tags: plugins  Meta: permalink