I'm having a problem, 'cause I wrote the following line in my model
validates_numericality_of :phone, :only_integer => true, :allow_blank =>
false, :message => "must be a number"
And in my "new" view, I put:
<%= error_messages_for :oi,
:header_message => "Erro ao cadastrar usuário." ,
:message => "Cheque o(s) seguinte(s) campo(s):"%>
Rails notice the error, because I can't save a Hi object with phone not
being a number; but it doesn't show me the errors that was find.
What it should be?
Thanks for any help.