我应该把“use Rack::Facebook::MethodFix”放在哪里使用 Rack Fix 修复 Facebook Post Canvas 问题?
查看此解决方案 https://github.com/tuupola/rack-facebook-method-fix 看起来很棒,只是它省略了对大多数人来说可能显而易见的内容,但现在是早上 5:30,也许我的大脑不工作。我应该在哪个文件中以及何处放置以下行:
require "rack-facebook-method-fix"
use Rack::Facebook::MethodFix
?我假设了 application.rb 的顶部,但这给了我一条错误消息:
/config/application.rb:5:in `<top (required)>': undefined method `use' for main:Object (NoMethodError)
Looking at this solution https://github.com/tuupola/rack-facebook-method-fix it seems great except it omits what is probably obvious to most, but it's 5:30 in the morning and perhaps my brain is not working. In what file and where should I put the lines:
require "rack-facebook-method-fix"
use Rack::Facebook::MethodFix
? I assumed the top of application.rb but that gives me an error message:
/config/application.rb:5:in `<top (required)>': undefined method `use' for main:Object (NoMethodError)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的 - 所以在不同的环境文件中添加上述行并将 use 行修改为:
似乎可行
Okay - so adding the above lines in the different environment files and modifyg the use line to read:
seems to work