mbleigh/acts-as-taggable-on — Issue #216: Need option to prevent or strip period character from new tag
Author: jaredbrown
Created: 2011-12-31 04:11:14+00:00
State: open

Problem:

If a user creates a tag, ".net" for example, it will break the route if you use the example in the README.

<% tag_cloud(@tags, %w(css1 css2 css3 css4)) do |tag, css_class| %>
<%= link_to tag.name, { :action => :tag, :id => tag.name }, :class => css_class %>
<% end %>

The dot is used to specify the format in a route. By requiring the route to allow a dot in the tag :id you have to use non-standard formats in your controller.

More info: [http://stackoverflow.com/questions/6908001/having-a-dot-in-the-id-of-rails-routes](http://stackoverflow.com/questions/6908001/having-a-dot-in-the-id-of-rails-routes)

Proposed solution:

Have an option to disallow (validate) or strip out periods in tag names.