Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Created June 13, 2012 17:52
Show Gist options
  • Select an option

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

Select an option

Save typeoneerror/2925489 to your computer and use it in GitHub Desktop.
def dots_tag(count)
content = (1..count).collect do |i|
content_tag(:li) do
content_tag(:a, :href => '#', :id => "dot-#{i}") do
"Feature #{i}"
end
end
end
content.join('\n')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment