Beginner's question: how to format data model error messages

Sascha Mantscheff wrote:

Two questions:
1) How do I get the function h to work in the database model?

You shouldn't want to, although I believe it's possible.

2) Is this the correct place to do it? Wouldn't the formatting of the
error message rather have to be located in a view?

Yes, in this case it's best to leave the string formatted as a native
Ruby string and do the HTML-izing in your view/helpers.