I have an “automation” model with some config data. When it runs it
across other models and does some matching, however it also builds up a
of “duplicate data” type issues identified as part of the routine.
In terms of how I capture this array of duplicate data issues and pass
view for display what would Rails best practice suggest? For example:
- use validation framework (e.g. add_to_base, and then the helper tags
display) even though the data is not associated with attributes in the
- extend an application_error Exception to include an Array
- just use an array to pass back to controller, which stores as an
variable (@duplicates) and write custom code to display in view (i.e.
use error/validation tags)