Validates Child Of plugin

Plugin details

Validates the current ActiveRecord object to ensure that it is the child of another one

Websitehttp://rubyforge.org/projects/validateschild/ Repositoryhttp://validateschild.rubyforge.org/svn Tags validation LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://validateschild.rubyforge.org/svn

Example usage:

class Page < ActiveRecord::Base
  validates_child_of :book
end



Configuration options:
message - A custom error message (default is: " must be the parent of %c")

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: Guest, 10 months ago