Skip to content

nagybence/railhead_permalink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RailheadPermalink

RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord objects with permalink.

Installation

Add to your Gemfile:

gem 'railhead_permalink'

Usage

Add permalink field to your schema:

t.string :permalink

Setup permalink for your ActiceRecord object:

auto_permalink :title

You can setup reserved names too:

auto_permalink :title, reserved_names: %w(reserved names)

You can keep already existing permalinks:

auto_permalink :title, keep_existing: true

License

Copyright © 2008-2015 Bence Nagy (bence.nagy@gmail.com), released under the MIT license.

About

Automatically finds ActiveRecord objects with permalink

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages