Plugins - Validates XML

StarAdd to favorites

This plugin adds XML validation to your model.

Example

  class Article < ActiveRecord::Base
    validates_xml :body
  end

This:

  Article.new(:body => "This will fail").save!

Will result in this:

  ActiveRecord::RecordInvalid: Validation failed: Body is not valid xml

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?