Skip to content

Instantly share code, notes, and snippets.

@puppe1990
Last active April 11, 2019 21:24
Show Gist options
  • Save puppe1990/387acf89dfa7e589cf78ac50965cd127 to your computer and use it in GitHub Desktop.
Save puppe1990/387acf89dfa7e589cf78ac50965cd127 to your computer and use it in GitHub Desktop.
def update_product(id, ncm, cest)
product = Product.find id
product.update(ncm: ncm, cest: cest)
end
id = ''
ncm = ''
cest = ''
update_product(id, ncm, cest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment