validates_presence_of :field_name, :message => "message"; the message shows up with the :field_name message concatenated.
how can i just show just the message and not the field_name?
Thanks
validates_presence_of :field_name, :message => "message"; the message shows up with the :field_name message concatenated.
how can i just show just the message and not the field_name?
Thanks
wheels wrote:
validates_presence_of :field_name, :message => "message"; the message shows up with the :field_name message concatenated.
how can i just show just the message and not the field_name?
One way is to install the custom-err-msg plugin -- http://rubyforge.org/projects/custom-err-msg/ -- and prefix your message with a caret.