No commit activity in last 3 years
No release in over 3 years
RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord objects with permalink.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

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.