# This helper method will either generate a regular link => Whatever # or it will generate a link with a "current class => Whatever # Easy, huh? def link_to_or_current(name, options = {}, html_options = {}) link_to_unless_current(name, options, html_options) do link_to(name, options, { :class => :current }) end end