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)
Tags Tag_red ae awe britney dsfsdgd fa fhhhhhhhhhhhhhhh id mtv rds rq rqwer rtw rwe ry sf sg slug slugs spears tube url wdgf we wetube youtube
Rating (21 votes)
Owner Tore Darell
Created 21 July 2006

Comments

  • Avatar
    Bilal Ahmed
    10 October 2007

    acts_as_sluggable 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 acts_as_sluggable 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