[LRUG] Controlling the order in which update_attributes processes the attributes

John Winters john at sinodun.org.uk
Sat Aug 18 00:57:43 PDT 2007


Is there any way of controlling the order in which update_attributes 
processes the attributes in a browser request?  I have a model which 
wants to perform normalisation on the data received, but in order to do 
that the attributes must be processed in a specific order.

As far as I can see, update_attributes by default simply processes them 
in the order which they are in the request, and the order in the request 
seems to be random.  It isn't the same as the order of fields on the 
edit form.

Do I have to do each attribute manually if I want to control the order?

TIA,
John



More information about the Chat mailing list