Comment on "
Speed Bumps with Validation in Rails
"
by
Benko
— Oct 24
What I do in my "models" is setting the "message" for every validation, like this:
validates_presence_of :title, :on => :save, :message => "Please specify the title of your post"
No idea how to group validations into one message, I display them one by one in a list as Justin suggests.
Back to "
Speed Bumps with Validation in Rails
"
Copyright © Scott Stevenson 2004-2015
by Benko — Oct 24
validates_presence_of :title, :on => :save, :message => "Please specify the title of your post"
No idea how to group validations into one message, I display them one by one in a list as Justin suggests.