Method: BaseHelper#topnav_tab
- Defined in:
- app/helpers/base_helper.rb
#topnav_tab(name, options) ⇒ Object
248 249 250 251 252 253 254 |
# File 'app/helpers/base_helper.rb', line 248 def topnav_tab(name, ) classes = [.delete(:class)] classes << 'current' if [:section] && (.delete(:section).to_a.include?(@section)) string = "<li class='#{classes.join(' ')}'>" + link_to( content_tag(:span, name), .delete(:url), ) + "</li>" string.html_safe end |