Created
June 11, 2012 19:45
-
-
Save typeoneerror/2912237 to your computer and use it in GitHub Desktop.
concat block
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def narrow_by_tag(title, spotlist_id = 0, count = 0) | |
| tag_id = "narrow-bg-#{spotlist_id}" | |
| content_tag :li do | |
| content_tag :a, :href => url do | |
| content = check_box_tag tag_id | |
| content << title | |
| content << content_tag :span, :class => 'counter' { count } | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment