Top Level Namespace
Defined Under Namespace
Modules: Buildybuild
Instance Method Summary collapse
Instance Method Details
#active_link_to(text, path, options = {}) ⇒ Object
1 2 3 4 5 6 |
# File 'lib/generators/buildybuild/active_link/templates/active_link_helper.rb', line 1 def active_link_to(text, path, ={}) if /^#{url_for(path)}/ =~ request.path [:class] = "#{[:class]} active" end link_to text, path, end |