O'Reilly logo
  • Yuho Ito thinks this is interesting:

Validating Confirmation

Whenever a user changes an important piece of data (especially the password), you may want the user to confirm that entry by typing it again. This is the purpose of the :confirmation option. When you use this helper, you create a new virtual attribute called #{field_name}_confirmation. Add this to the User model for password confirmation, as shown in


Cover of Beginning Rails 3