Jump to content

The ultimate community for Ruby on Rails developers.


Populate form with Object

Shopify Form Object Populate

  • Please log in to reply
1 reply to this topic

#1 benh4889



  • Members
  • 2 posts

Posted 14 August 2014 - 05:40 PM

Hey there,


Im going to as what im sure is a newbie question but from all my googling and trial an error and i cannot seem to figure out how to do this. 


Basically im in the process of trying to learn RoR, to do this im building a test app that interacts with the Shopify API ( We use shopify a lot at my work ).


I have the app set up to pull a product and this is saved as an object ( That all works fine ):

product = ShopifyAPI::Product.find( {{ product.id }} )

What im wanting to do is populate a form with the data from this object e.g. title, description etc so that users of the app can edit products from the app, click save and it will update the product within shopify.


The bit im stuck on is actually populating a form the the object data, i know how to call save once the changes have been done, i just cant work out how to actually populate the form.

Im sure this is dead easy but i just cant seem to work it out


Thanks in advance :D

#2 th3mus1cman



  • Members
  • 14 posts
  • LocationRichmond, VA

Posted 07 January 2015 - 12:52 AM

Can you post some of the controller and view code that you have so far?

Rails Developer and Partner at Left + Right

Also tagged with one or more of these keywords: Shopify, Form, Object, Populate

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users