I have a situation that I can not understand what is wrong. I have a validation in the model that by the console it works correctly, but when running by the browser the form does the submit and ignores the validation.
My Model: class User < ActiveRecord :: Base
validates :name, presence: true
has_secure_password
end
I'm breaking my head.