Module: StringToUrlNotFound
- Defined in:
- lib/core_extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_url ⇒ Object
22 23 24 |
# File 'lib/core_extensions.rb', line 22 def to_url gsub(/[^a-zA-Z0-9]/, "-").gsub(/-+/, "-").gsub(/^-|-$/, "").downcase end |