Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails plugin that adds a to_slug method to String instances. Slugs can be used for URLs, since all 'dangerous' characters have been filtered out.
Ruby
Tree: 9f058725cc

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
MIT-LICENSE
README
Rakefile
init.rb

README

ToSlug
======

This plugin adds a to_slug method to String instances. With this method you 
can easily generate a slug from any string. Slugs can be used for URLs, since
all 'dangerous' characters have been filtered out.

Example
-------

  "Hello World".to_slug # => "hello-world"

  "The World is Beautiful!".to_slug # => "the-world-is-beautiful"

See the specs for more (complex) examples.

Installation
------------



Dependencies
------------

This plugin depends on the 'unicode' gem (sudo gem install unicode). See
http://www.yoshidam.net/Ruby.html#unicode for more information.

Copyright (c) 2008 Cubicphuse, released under the MIT license
Something went wrong with that request. Please try again.