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