Skip to content

Instantly share code, notes, and snippets.

@drewdeponte
Created September 1, 2011 23:25
Show Gist options
  • Save drewdeponte/1187562 to your computer and use it in GitHub Desktop.
Save drewdeponte/1187562 to your computer and use it in GitHub Desktop.
include LinkedinHelpers
include FacebookHelpers
include Socializer
def nav_link(name, path, path_only = false)
host = path_only ? '' : RppWebApp::CONFIG['hostname']
if request.url.include?(path) || session[:nav_link_path] == path
link_to(name, host + path, { :class => "selected" })
else
link_to(name, host + path)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment