I would like to introduce an option *order_before_validation* for *has_many* associations: If you add new objects via an Rails API to an `has_many` association via nested attributes and you would like to keep the order of the collection sorted by an attribute the matching of the errors via `index_errors` to form input´s can be hard. You can add an `order` attribute that you set manually on client side after re-ordering or adding new items and order the collection before validation. Validation errors can easily assigned to the associated input´s in the form via the index.
Do you think it it worthy merging into Rails Core? https://github.com/andre1810/rails/tree/order_before_validation_option Best regards André -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
