Michael Boutros (Michael Boutros)
- Michael has 1 plugin published and has 0 fans on Railsify!
- http://www.michaelboutros.com/
custom_field_error by Michael Boutros (Michael Boutros) in HTML Helpers, ActiveRecord, and Miscellaneous
custom_field_error allows you to easily setup custom HTML to be displayed when there is a validation issue with a form. You can setup a different view for every model, or setup a view in one model and have that view be used as the default for all the other models. You can also explicitly override the default view you have chosen by defining another view within another model. Last but not least, you can choose to leave the Rails default view for whatever models you want. It sounds like a lot, but I promise: it's dead simple.


