Here’s a JavaScript snippet intended for Rails that I just posted over on my company’s technical blog. It displays the error message for each field when you click on the field, making it easier to see exactly what went wrong when saving a record.
Read it here: Dynamic Rails error help





