Thursday 19 November 2009

Acts As Lockdown

A Rails plugin that addresses the need for certain ActiveRecord attributes to be unwritable when a record has entered a certain state. Take for example a product that begins in a "pending" state, and later enters a "published" state. From that point on, you require that the price and description must not be changed. The plugin assumes that you have a state machine in place that and your object will respond to a query on the state you specify eg self.published? It works... More

Saturday 25 July 2009

New Wilderness Feature: Text Editor Preference

Added a new feature to Wilderness CMS system today - a preference that will change text areas from TinyMCE default to Textile, Markdown, Simple Format or plain. Comes with an accompanying helper for views. formatted_text(content) More

Wednesday 10 December 2008 | 4 comments

Translates To French

A quick and dirty plugin for Rails 2.2 English sites that need to provide ActiveRecord translations to French. Highly limited and inflexible, but seems to serve my highly limited and inflexible needs at the moment: a single-user CMS content site managed by an English-speaking person. French translations show on the front end if available, and default to English otherwise. I based it on this post and plugin: http://iain.nl/2008/09/acts_as_translatable_mode... More