Skip to content

Instantly share code, notes, and snippets.

View pawciogh's full-sized avatar

pawciogh

View GitHub Profile
@mynameispj
mynameispj / application_helper.rb
Created June 2, 2013 00:24
Rails - Easy "active" classes for menu links in Rails
module ApplicationHelper
def current_class?(test_path)
return 'active' if request.path == test_path
''
end
end