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…
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs