I'm using validates_format_of and the validation I want to do works, but I cannot get an error message to be displayed if the data is invalid: validates_format_of :mobile, :with => /\A[\+0-9]+\Z/, :message => " - Wrong"
I have another validation some where else that does display the error message: " - Name is too long" validates_length_of :name, :within => 5..40, :too_long => " - Name is too long", validates_length_of :name, :within => 1..50, :message => "Broken" *<------ This also works but not for validates_format_of* Any ideas? Thanks. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/M5j7nh5xCbEJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
