This project is archived and is in readonly mode.

#430 ✓resolved
Brennan Dunn

validates_non_format_of - the converse of validates_format_of

Reported by Brennan Dunn | June 16th, 2008 @ 04:21 PM

Considering that there exists validates_inclusion_of/validates_exclusion_of, I figured it would be prudent to have the same relationship established for the format validations.

  class Page < ActiveRecord::Base
    validates_non_format_of :permalink, :with => /^admin/i
  end

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages