Links
acts_as_sluggable
Categories
acts_as_sluggable
Adds slugs to your URLs based on an existing field in any model.
So,
/blog/show/12
becomes
/blog/show/12-wtf-check-this-out-lol
Vitals
| Home | http://tore.darell.no/pages/acts_as_sluggable |
|---|---|
| Repository | http://nimrod.interinter.net/plugins/trunk/acts_as_sluggable/ |
| License | Rails' (MIT) |
| Rating | (21 votes) |
| Owner | Tore Darell |
| Created | 21 July 2006 |
Comments
-
actsassluggable is missing some important points like it allows some characters to be a part of the url slug which are not url friendly like subscripts etc. have any one else got such experience?
-
What does actsassluggable give you over modifying the to_param method in ActiveRecord::Base?
-
Bilal: There's nothing wrong with non-ASCII characters in the URL, the browser will punycode them.
Anyway, this plugin is pretty useless now.. Just define to_param to do what you want.
