Error while updating name validation failed

Posted by / 01-Aug-2017 04:44

Error while updating name validation failed

If the validation passes, our controller will continue executing normally.Sometimes you may wish to stop running validation rules on an attribute after the first validation failure.For example, consider an "update profile" screen that includes the user's name, e-mail address, and location.Of course, you will want to verify that the e-mail address is unique.If a game collector registers with our application and they own more than 100 games, we want them to explain why they own so many games.

Or, you may need two fields to have a given value only when another field is present.

In addition, all of the validation errors will automatically be flashed to the session.

Again, notice that we did not have to explicitly bind the error messages to the view in our Forcing A Unique Rule To Ignore A Given ID: Sometimes, you may wish to ignore a given ID during the unique check.

To generate a new rule object, you may use the You will also need to define an error message for your custom rule.

You can do so either using an inline custom message array or by adding an entry in the validation language file.

error while updating name validation failed-69error while updating name validation failed-2error while updating name validation failed-4