Web Development  >>  Ruby On Rails

Customize Field Error

Language : English Quality : High Has Audio : true Source : Other Media : QuickTime
When a validation error occurs, Rails helpfully wraps the field in a div tag so you can style it. But sometimes you don't want this behavior. In this episode you will see how to customize it.

Tags: Ruby On Rails, Screencast, Web Development, Customize, Validation,     [SUGGEST  A  TAG]

Resources referenced in this screencast
  • Ruby on Rails

  •  OR 
    Created : 2007-06-01   Duration : 3:30 (18.1 MB)


    (Requires : MPEG-4 Video Player)
    Download file is iPod compatable

    Articles Realted to this Topic

    [SUGGEST  A  ARTICLE]
    AJAX validation on Rails
    I wanted AJAX requests in Rails to result in error handling and message reporting that was at least as nice (and almost as easy) as doing the same thing without AJAX.
    Rails Custom Validation
    Suppose you have validation code for a certain type of data that you want to reuse across your ActiveRecord models. What is the best approach to doing this in Rails? As you probably know, Rails comes with a number of validation macros such as validates_presence_of, validates_format_of, and validates_uniqueness_of etc..