未初始化常量ShopifyAPI::CustomerGroup::Customers错误 [英] uninitialized constant ShopifyAPI::CustomerGroup::Customers error

查看:28
本文介绍了未初始化常量ShopifyAPI::CustomerGroup::Customers错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

毫无疑问,我在这里做错了什么,但我正在遵循here中关于新提交的说明。

我收到以下错误

uninitialized constant ShopifyAPI::CustomerGroup::Customers
00:33:56 web.1    | /Users/matt/.rvm/gems/ruby-1.9.3-p0/gems/shopify_api-3.0.3/lib/shopify_api/resources/customer_group.rb:4:in `customers''

运行此代码时

 group = ShopifyAPI::CustomerGroup.find(5614012)
            customers = group.customers

这里是上面提到的gem file

推荐答案

3.0.3版应该可以解决此问题,我必须了解为什么没有解决。

同时,您可以执行以下操作:

group = ShopfiyAPI::CustomerGroup.find(123)
customers = group.get(:customers)

这篇关于未初始化常量ShopifyAPI::CustomerGroup::Customers错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆