~srushe/validates_as_issn_old

validates_as_issn_old/README -rw-r--r-- 610 bytes
9379121c — Steve Rushe First commit to repository (version 0.2). 14 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ValidatesAsIssn
===============

This Ruby on Rails plugin implements an ActiveRecord validation helper
called validates_as_issn. The helper validates that the string provided
is a valid ISSN.

Installation
------------

ruby script/plugin install http://svn.deeden.co.uk/validates_as_issn/trunk

Full documentation on script/plugin can be obtained by invoking the plugin
script with no arguments:

ruby script/plugin

You may need to restart your webserver in order to load the plugin files.

Usage
-----

In your model file do something like:

class MyClass < ActiveRecord::Base
  validates_as_issn :issn
end