I am learning RoR at the moment, and I think I should misunderstand something.
I have a call to the ActiveRecord User class with simple checks on: name and: email, for example, the presence of: true, length: {maximum: 15}, etc. I thought I would check the checks in the console. I go to the rails (development env) console and create a new instance with a name that is too long, for example user_instance = User.new (name: "aaaaabbbbbcccccddddd", email: "").
Verification does not cause errors. When I try user_instance.save, the record will not be written to the database, so at this point it obviously works fine. What am I doing wrong?
source share