app/filters/url_filters.rb
# marks a section as class=selected
marks a section as class=selected
marks a section as class = selected
def section_anchor_options(section, options = {})
      options.update(:href => section['url'])
      options[:class].nil? ? options.update(:class => 'selected') : options[:class] += ' selected' if current_page_section && (current_page_section.url == section.url)
      options
    end
def section_anchor_options ( section , options = { } ) options . update ( :href => section [ 'url' ] ) options [ :class ] . nil? ? options . update ( :class => 'selected' ) : options [ :class ] += ' selected' if current_page_section && ( current_page_section . url == section . url ) options end
marks a section as class=selected
marks a section as class = selected
section
<not_specific>
options
<not_specific>