Create strings for SEO-friendly URLs
features:
- converts every improper character to a hyphen
- returns a lowercase string
I POSTED AN EVEN BETTER METHOD ON MY BLOG: http://tinyurl.com/2vurbq
1 2 def create_callname (title) 3 title.downcase.gsub(/[^a-z0-9]+/i, '-') 4 end