Data Constraint

How to set the constraint of the input by the user…??

Example…

If user input the name field with number.Error message will be display…

Google for “rails validates_format_of example”.

Preston

Hasana H. wrote:

How to set the constraint of the input by the user…??

Example…

If user input the name field with number.Error message will be display…

In your model use the validate_format_of, use Google to know more about
it :slight_smile: