Custom validation error messages.

Hi all,

I have a few questions regarding the error messages which are produced by default. For example, if I have "validates_uniqueness_of" I may get an error message "Surname has already been taken'

What if I want a custom message without prefixing the attribute name? I've come across a plugin which allows me to do this:

validates_uniqueness_of :name, :message => '^The surname supplied is not valid.'

Whereby the use of the ^ says that error message should be output as is, without any prefixing, but just without the ^.

Are there any other cleaner alternatives than this plugin? What if (and most likely it may) the Rails full_messages changes and things then break? BTW full_messages is overriden by said plugin. I know it's probably being picky of me, and the plugin is almost there and a clean enough solution.

Thought I'd ask.

Cheers, Diego