Agile Web Development

Build it. Launch it. Love it.

Custom Error Message

Active Record validation enhancement. Gives you the option to not have your custom validation error message prefixed with the attribute name.

Vitals

Home http://rubyforge.org/projects/custom-err-msg/
Repository svn://rubyforge.org/var/svn/custom-err-msg
License
Tags Tag_red
Rating (13 votes)
Created 25 May 2006

Comments

  • Avatar
    netin
    8 June 2009

    I have copied the extracted custom-err-message plugin from github after downloading the zip. Have restarted my application after copying it to vendor/plugins directory and have placed validation check in model as -

    validatespresenceof :project_name, :message=>"^Project Name cannot be blank"

    But it did not work out.

    Anyone has a clue why? It instead displays -

    project_name ^Project Name cannot be blank

    as the validation error in the error div.

Add a comment