Skip to content

Instantly share code, notes, and snippets.

@mortik
Created April 14, 2013 12:09
Show Gist options
  • Save mortik/5382482 to your computer and use it in GitHub Desktop.
Save mortik/5382482 to your computer and use it in GitHub Desktop.
Nav Helper to check which navigation item is currently active
# encoding: utf-8
module ActiveNavHelper
def get_active_nav nav = 'home'
if nav == @active_nav
return "active"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment