help_helper.rb

Path: app/helpers/help_helper.rb
Last Update: Wed Jul 19 10:28:26 EDT 2006

Provides Javascript-powered help boxes that open on the page when the user clicks on the help link. Each link may have its own box, or multiple links can share the same box.

USAGE:

Link with shared help box (default):

  <%= link_to_help 'link_to_click', 'name_of_help_entry' %>
  <%= area_for_help %>

Link with help div, id = ‘personal’:

  <%= link_to_help 'link_to_click', 'name_of_help_entry',
                    :area_for_help => 'personal' %>
  <%= area_for_help :html => { :id => 'personal'} %>

Link with custom display effects and default body text:

  <%= link_to_help 'link_to_click', 'another_name_of_help_entry',
                    :area_for_help => 'another_personal',
                    :js_on_open => visual_effect(:appear, 'another_personal'),
                    :js_on_change => visual_effect(:pulsate, 'another_personal'),
                    :js_on_close => visual_effect(:fade, 'another_personal') %>
  <%= area_for_help :body => "Help Box Area",
                    :html => {:id => 'another_personal', :style => ''} %>

[Validate]