ruby on rails - Application proxy in shopify is not working(RoR) -
i new shopify app development. want shop data , show proxy url. read this artcle
but after following steps in next steps section got error in heroku logs on line .
shopifyapi::base.site = shop.find_by_name(params[:shop]).api_url
i avoided error
shopifyapi::base.site = shop.find(name: params[:shop]) @orders = shopifyapi::order.find(:all, :params => {:limit => 10})
this view file code
<% @orders.each |order| %> <%= order.line_items.first.title %> <% end %>
now getting following error
actionview::template::error (undefined method `each' nil:nilclass):
shopify gurus issue?
Comments
Post a Comment