Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Permalize

Permalize

Following after some Ruby and Rails conventions, such as camelize, pluralize, titleize, etc, I’ve created permalize. Basically, it takes any string and makes it into a permanent link. See the examples below.

Example

There are two ways you can use this plugin. 1)

string = “Here is the new string” new_string = string.permalize

new_string will now be permalized, but string will still be “Here is the new string”

2)

string = “Here is the new string” string.permlize!

Thanks To

Andrew Waer (http://www.compooter.org) Brian Smith (http://www.swig505.com)

Copyright© 2007 Robert R Evans, released under the MIT license

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly

Users


See all details


Membership

+ Join this railsplugin

Record Maintainer

'None'