= private = protected
sanitize_to_id(name)
see http://www.w3.org/TR/html4/types.html#type-name
# File actionpack/lib/action_view/helpers/form_tag_helper.rb, line 475 def sanitize_to_id(name) name.to_s.gsub(']','').gsub(/[^-a-zA-Z0-9:.]/, "_") end