WhowishWord (This is a draft) ==================== Have you ever been bored when a project manager (or marketing department) keeps changing wording on a website? WhowishWord facilitates the process of changing wording on a website. How you should work ------------------- 1. Activate edit mode by calling activate_whowish_word_edit_mode() in any controller 2. Go back to the website, you'll see an edit icon on each word 3. Click on an edit icon to edit the corresponding word 4. Fill in a new word, and click save 4.1 If it is the first time, you will need to fill master password at this point. (The instruction how to set password is below) And when you have finished, deactivate edit mode. WhowishWord empowers normal users (project manager, marketing department, or sales) to change wording on a website. This take the burden off programmers because it is extremely boring to change wording... Prerequisite ------------------- Rails 3.1.* (It does not work with Rails 3.0.*, yet. Please send me an issue and I will fix it.) How to use it ------------------- First, install it: ``` gem install whowish_word ``` Or, in your Gemfile, put in the below line: ``` gem 'whowish_word' ``` Second, create RAILS_ROOT/config/initializers/whowish_word.rb that contains: ```ruby require 'whowish_word' WhowishWord.init(:active_record) WhowishWord.username = "root" WhowishWord.password = "pass" ``` You can use either use :active_record or :mongoid Performance ------------------- It is fast because words are kept in memory. They are not kept in database while your Rails is running. How to extend WhowishWord to suit your need ------------------------------------------------- WhowishWord is nicely structure. You can extend it by writing a new handler and creator (on client-side). Please learn the code structure. If you have any question, feel free to ask me. Authors ------------------- Tanin Na Nakorn Tanun Niyomjit (The design of a dialog box)