Simple Ruby on Rails plugin for enabling certain page texts to be version controlled, translated, stored in the db, and edited.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
tasks
test
views
.gitignore
MIT-LICENSE
README
Rakefile
init.rb

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