Mastering Rails Forms Episode 2: Customizing Form Errors
  • You'll need to pay to download this video
View_video

Good forms help a user when trouble strikes. The default form error presentation is a start, but you should customize how form errors are presented to fit the needs of your users. Unfortunately, it’s not always obvious how to fully customize what Rails gives you. In this episode, we’ll completely customize the content of validation error messages and how form errors are displayed. We’ll finish up by validating the pizza form using AJAX. You’ll learn how to:

  • change the entire contents of any validation error message
  • customize the HTML (design and layout) of invalid form fields
  • make your application unique by writing a customized error_messages_for helper
  • display form errors inline next to invalid form fields
  • handle error messages added to “base”
  • validate forms before a submit using AJAX


Tags: The Pragmatic Programmers, Mastering Rails Forms, Ruby, AJAX, Technologies, Ruby On Rails, Frameworks

Level: any Date: December 18, 2008 Votes: 0 User: Dmytro Shteflyuk  Comments:
 
 

No Response(s) to this entry

Subscribe to comments with RSS.