Skip to content

Instantly share code, notes, and snippets.

@spacekat
Created February 9, 2013 00:54
Show Gist options
  • Save spacekat/4743280 to your computer and use it in GitHub Desktop.
Save spacekat/4743280 to your computer and use it in GitHub Desktop.
HAML-friendly Ruby bits (for Rails views)
%li{:class => (current_page?(:action => "show") && "active")}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment