mirror of
https://github.com/danbee/slugtastic
synced 2025-03-04 08:49:05 +00:00
Readme tweaks
We're no longer compatible with Ruby versions less than 2.0.0.
This commit is contained in:
parent
f067690272
commit
babb6d843c
@ -9,11 +9,9 @@ models.
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* Ruby 1.9.2, 1.9.3 or 2.0.0
|
* Ruby 2.0.0+
|
||||||
* Rails 3.1 or higher.
|
* Rails 3.1 or higher.
|
||||||
|
|
||||||
It should work with Rails 3.0 but it hasn't been tested.
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Add this line to your application's Gemfile:
|
Add this line to your application's Gemfile:
|
||||||
@ -34,7 +32,7 @@ Usage is very simple. Just add the following to your model:
|
|||||||
|
|
||||||
slug :slug, from: :title
|
slug :slug, from: :title
|
||||||
|
|
||||||
This will generate a slug string from the title atrribute and store it in the
|
This will generate a slug string from the title attribute and store it in the
|
||||||
slug attribute unless the slug already contains a string. The slug is generated
|
slug attribute unless the slug already contains a string. The slug is generated
|
||||||
pre-validation so you can still use `validates_presence_of :slug`.
|
pre-validation so you can still use `validates_presence_of :slug`.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user