Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. account_information = {
  2. billing_country: nil,
  3. last_name: "Vincent",
  4. organization: nil,
  5. shipping_address: nil,
  6. shipping_city: nil,
  7. shipping_country: "",
  8. product_name: "Round 3, 2012 - Single",
  9. shipping_address_2: nil,
  10. shipping_zip: nil,
  11. billing_zip: nil,
  12. billing_address: nil,
  13. shipping_phone: nil,
  14. billing_address_2: nil,
  15. shipping_state: nil,
  16. billing_city: nil,
  17. first_name: "Margaret",
  18. billing_state: nil,
  19. product_family_name: "Rounds"
  20. }
  21.  
  22. st = Statement.find(11443962)
  23. st.update(account_information: account_information)
  24. # or
  25. st.update_attribute(:account_information, account_information)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement