What are rails validation used for?



What are rails validation used for?..

Answer / Kanishka Pangti

Rails validations are used to ensure the integrity of data being saved to the database. They help enforce business rules, such as data type and format constraints, uniqueness, presence, and length limits.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby on Rails Interview Questions

Explain about Dig, Float and Max?

1 Answers  


How is direct different from render?

1 Answers  


What is ORM in Rails?

1 Answers  


What is Rails?

1 Answers  


What is the difference between concern and application_controller.rb in ruby on rails?

1 Answers  


The string can be represented in single as well as double quotes. What is the difference between the two?

1 Answers  


what is the difference in scope for these two variables: @@name and @name?

1 Answers  


Explain me what is the role of rails controller?

1 Answers  


What are the various components of rail?

1 Answers  


How do I find only duplicate entries in a database table?

1 Answers  


What are models in rails?

1 Answers  


At is cross-site request forgery (csrf)?

1 Answers  


Categories