Facebooker gem 似乎不支持 jQuery

发布于 2024-07-29 23:24:50 字数 477 浏览 1 评论 0原文

我试图让 facebooker gem 与 jQuery 一起使用,但一旦我加载 jquery.js 而不是 prototype.js 并使用,它甚至不会渲染 facebook 连接按钮 init_fb_connect“XFBML”,:js => “jquery”

我尝试了这个例子 http: //www.madebymany.co.uk/tutorial-for-restful_authentication-on-rails-with-facebook-connect-in-15-minutes-00523

任何人都知道它是否需要原型或者我在做什么真的有什么问题吗?

I tried to get the facebooker gem to work with jQuery, but it does not even render the facebook connect buttons, once I load jquery.js instead of prototype.js and use
init_fb_connect “XFBML”, :js => “jquery”

I tried it with the example
http://www.madebymany.co.uk/tutorial-for-restful_authentication-on-rails-with-facebook-connect-in-15-minutes-00523

Anybody has a clue if it does require prototype or am I doing something really wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独守阴晴ぅ圆缺 2024-08-05 23:24:52

好吧,问题是我加载了 facebooker.js,它不能与 jQuery 一起使用,但 facebook 连接功能也不需要它!

Okay, so the problem was that I loaded facebooker.js, which does not work with jQuery, but it is also not required for the facebook connect functionality!

兔小萌 2024-08-05 23:24:51

当您在视图中调用 init_fb_connect 辅助方法时,您可以通过 :js 选项指定 jQuery 或 Prototype,如下所示...

<%= init_fb_connect "XFBML", :js => :jquery %>

When you call the init_fb_connect helper method in your view, you can specify jQuery or Prototype via the :js option, like so...

<%= init_fb_connect "XFBML", :js => :jquery %>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文