Agile Web Development

Build it. Launch it. Love it.

acts_as_nice_url

NiceUrl

=

This acts_as extension provides the capabilities for creating a nice url based on an attribute of the current object.

You can set / unset the object id in front of the URL and choose the object attribute to use to generate the URL.

Installation

======

ruby script/plugin install git://github.com/Bounga/acts_as_nice_url.git

Example

=
  class Author < ActiveRecord::Base
    acts_as_nice_url :id => false, :title => :full_name
  end

Other

Problems, comments, and suggestions are welcome at nico@bounga.org

Copyright © 2008 Nicolas Cavigneaux, released under the MIT license

Vitals

Home http://github.com/Bounga/acts_as_nice_url
Repository git://github.com/Bounga/acts_as_nice_url.git
License Rails' (MIT)
Tags Tag_red
Rating (2 votes)
Owner Nicolas Cavigneaux
Created 23 September 2008

Comments

Add a comment