samedi 25 juillet 2015

Rails GET request model update

Say i have a GETrequest action called thankyou that redirects the user to the thankyou template after they have ordered and paid for an item. In said action, is it bad practice, since it's a GET request for me to update some attribute on the order?

e.g.

def thankyou
    @order.update_attributes(:approval_required => true)
end

Aucun commentaire:

Enregistrer un commentaire