Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Created June 11, 2012 19:45
Show Gist options
  • Select an option

  • Save typeoneerror/2912237 to your computer and use it in GitHub Desktop.

Select an option

Save typeoneerror/2912237 to your computer and use it in GitHub Desktop.
concat block
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