create a text boxes for everty product in ruby on rails(shopify app) -


i have created app using ruby on rails shopify.this time app displaying available products on store.

but want text boxes every product display text box values in product page. how can achieve this? have read somewhere can done metafields , have used below code:

in controller:

@products = shopifyapi::product.find(:all, :params => {:limit => 10}) 

in view:

<% @products.metafields.each |metafield| %> <%= metafield.key %> : <%= metafield.value %> <% end %> 

but getting error on app page. there else need add in code?


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -