Agile Web Development

Build it. Launch it. Love it.

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

  • Avatar
    Bilal Ahmed
    10 October 2007

    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?

  • Win
    14 January 2008

    What does actsassluggable give you over modifying the to_param method in ActiveRecord::Base?

  • 29 January 2008

    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.

Add a comment