responds_to?(:chris)

Chris Cherry's random snippets of geek 
« Back to blog

urlize Plugin

New rails plugin that I have been using in production code for a while was just posted to GitHub. It reformats any string into a permalink style that is suitable for use in a URL. For example...


"Page Test #1".urlize
>> "page-test-1"

Git it here:
http://github.com/ctcherry/urlize

I'm sure there is stuff wrong with it, so patches and pull requests are always welcome!

Loading mentions Retweet

Comments (0)

Leave a comment...

 
To leave a comment on this posterous, please login by clicking one of the following.
Posterous-login     twitter