Rails:未捕获的ReferenceError:未定义ShopifyApp

时间:2015-08-28 01:01:15

标签: ruby-on-rails shopify

我有一个基于Rails的Shopify应用程序。得到此错误:

  

未捕获的ReferenceError:尚未定义ShopifyApp

参考:

NSUserActivity *activity = [[NSUserActivity alloc] initWithActivityType:activityType];
activity.title = @"title";
activity.webpageURL = [NSURL URLWithString:webLinkUrlString];
activity.userInfo = @{@"id": webLinkUrlString, @"deep_link": deepLinkUrl};
// set requiredUserInfoKeys if you're also setting webPageURL !!
// otherwise, userInfo will be nil !!
activity.requiredUserInfoKeys = [NSSet setWithArrays:@[@"id", @"deep_link"]];
activity.eligibleForSearch = YES;
activity.eligibleForPublicIndexing = YES;
activity.contentAttributeSet = attributeSet;
activity.keywords = [NSSet setWithArray:keywordsArray];
self.activity = activity;
[self.activity becomeCurrent];

我正在使用shopify_app gem。我已经看了一会儿,无法弄清楚如何加载它。

1 个答案:

答案 0 :(得分:0)

你能检查你的控制器是否继承了AuthenticatedController:

class MyController < AuthenticatedController
...