Rails 3 Custom Validator Quandary -- Solution Step One

on Thursday, September 15, 2011
Remember when I had a Rails 3 custom validator quandary? My bottom-line question was "how should I access a specific error condition, cleanly, in both an action, and a template?" I sketched a few solutions, ranging from checking for a specific error message to providing a function that indicates if the error has occurred.

For now, I want simple boolean methods on the model to encapsulate the

0 comments:

Post a Comment