URL Column plugin

Plugin details

Help serves url with meaningful column name instead of record id.

Websitehttp://www.2404.co.uk/index.php?path=articles/view.php&articleId=23 Author Steve Tags url, seo LicenseUnknown

Documentation

Though not a new idea, UrlColumn solves this problem in a nice way:

class Page < ActiveRecord::Base has_url_column :page_url, :from => :title end


When you create or save a 'Page', a nice url will be created from the 'title' column and stored in the 'page_url' column.

"My Lucky Biscuit" becomes "my_lucky_biscuit"

Non-url friendly characters are replaced:
"Oh my #:*+! head!" becomes "oh_my_head"

Certain symbols are magically replaced:

"You & I" becomes "you_and_i"
"Steve @ RailsConf" becomes "steve_at_railsconf"

Bonzer!

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago