peter / page_texts

Simple Ruby on Rails plugin for enabling certain page texts to be version controlled, translated, stored in the db, and edited.

This URL has Read+Write access

name age message
file .gitignore Loading commit data...
file MIT-LICENSE
file README
file Rakefile
file init.rb
directory lib/
directory tasks/
directory test/
directory views/
README
PageTexts
=========

Plugin that provides an admin web UI for editing certain texts on pages, translating them
to different locales, and keeping the texts version controlled.


Dependencies
=======

The plugin was tested on Rails 2.2. It depends on the following plugins:

acts_as_versioned - http://github.com/technoweenie/acts_as_versioned/tree/master
globalize2 - http://github.com/joshmh/globalize2/tree/master

Usage
=======

Generate a migration that sets up the tables:

class AddPageTexts < ActiveRecord::Migration
  def self.up
    PageTexts.create_tables
    PageTextTranslation.create_versioned_table
  end

  def self.down
  end
end

If you want to use the web UI, add this to routes.rb:

map.resources :page_texts

Copyright (c) 2008 Peter Marklund, released under the MIT license