Ruby on Rails Validation Helpers

When you create a Web site or Web application with Ruby on Rails, you need to make sure that you input data in a form that Rails recognizes and can use. The following table contains Rails validation helpers:



























validates_acceptance_ofvalidates_inclusion_of
validates_associatedvalidates_length_of
validates_confirmation_ofvalidates_numericality_of
validates_eachvalidates_presence_of
validates_exclusion_ofvalidates_size_of
validates_format_ofvalidates_uniqueness_of








dummies

Source:http://www.dummies.com/how-to/content/ruby-on-rails-validation-helpers.navId-323192.html

No comments:

Post a Comment