Module: Shim::PagesHelper

Defined in:
app/helpers/shim/pages_helper.rb

Instance Method Summary collapse

Instance Method Details

#current_sectionObject



3
4
5
# File 'app/helpers/shim/pages_helper.rb', line 3

def current_section
  params[:id].split("/").first
end


7
8
9
10
11
12
13
# File 'app/helpers/shim/pages_helper.rb', line 7

def nav_class(section)
  if current_section == section
    Shim.configuration.active_nav_class
  else
    ""
  end
end