module RailsConnector # This module contains a helper that can be used to build a micronavigation. module MicronavHelper # Generates a micronavigation by producing HTML markup. # obj becomes the rightmost Obj in the micronavigation since it is the one # for which the micronavigation is built. Assume that all the ancestors of this obj are # available as an array starting with the root object at index 1. # The following options exist: # # [:start] index of the ancestor object to start with. Default is 1, i.e. the object Obj::root. # [:micronav_id] ID of the micronavigation. Default is 'micronav'. # # All ancestors of obj are linked to the respective objects. obj # has no linkage. The first and the last
  • tags have apropriate CSS classes. # # For example, assume that you have the following object hierarchy: # # * Root # * Ancestor_1 # * Ancestor_2 # * Current_Object # # Normal usage with the context Obj set to @obj: # # <%= micronav(@obj) %> # # The helper will start with the Root and will generate the follwing HTML if @obj is set to Current_Object: # # # # If the :start option is set to 2 # # <%= micronav(@obj, :start => 2) %> # # then the helper will start with Ancestor_1 and will generate: # # # # If you specify the :micronav_id option as in # # <%= micronav(@obj, :micronav_id => 'micronav_below_banner') %> # # then the