<?xml version="1.0" encoding="UTF-8"?>
<page>
  <body>&quot;API&quot;:http://sargon.interinter.net/acts_as_sluggable/ &quot;SVN&quot;:http://nimrod.interinter.net/plugins/trunk/acts_as_sluggable/

This plugin is kind of deprecated, as it is now, after some recent changes in Rails, really easy to achieve this effect without the use of a plugin. Here's how:

Define @to_param@ in your model to return the slug.

[ruby]
class Article &lt; ActiveRecord::Base

  def to_param
    id.to_s+'-'+title.downcase.gsub(' ', '-')
  end

end
[/ruby]

That's it. Now you have the same effect right there in the model. You know exactly what it's doing and where it is, and you can customise the process for each model. If you're one of those DRY fanatics, put @to_param@ in a module in @/lib@ and include it in the models where you want slugs.</body>
  <created-at type="datetime">2007-04-13T23:14:39-04:00</created-at>
  <id type="integer">4</id>
  <parent-id type="integer" nil="true"></parent-id>
  <published type="boolean">true</published>
  <slug>acts_as_sluggable</slug>
  <summary></summary>
  <title>ActsAsSluggable</title>
  <updated-at type="datetime">2008-03-15T17:01:06-04:00</updated-at>
</page>
