从蓝图切换到 Twitter Bootstrap [英] Switching from Blueprint to Twitter Bootstrap

查看:42
本文介绍了从蓝图切换到 Twitter Bootstrap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将在 Rails 3.1 应用程序中用 Twitter Bootstrap 替换 Blueprint.我遵循了 Railscast 中的示例,并且在该示例中使用了它.但是,当我尝试将其放入我的应用程序时,导航栏中的折叠功能不起作用.当我点击它时什么也没有发生.

I'm replacing Blueprint with Twitter Bootstrap in a Rails 3.1 application. I've followed the example in the Railscast and I have it working in that example. However, when I try to put it into my application the collapse functionality in the navbar doesn't work. When I click on it nothing happens.

我正在使用 twitter-bootstrap-rails gem.

I'm using the twitter-bootstrap-rails gem.

我已经从样式表目录中删除了 Blueprint 文件夹.我还从 javascripts 目录中删除了所有 Blueprint javascripts.我已经清除了 Public/Assets 目录中的所有编译版本.我还清除了我的 tmp 目录.重新启动我的服务器,但由于某种原因折叠功能仍然不起作用.

I've removed the Blueprint folder from the stylesheets directory. I've also removed any Blueprint javascripts from the javascripts directory. I've cleared any compiled versions from the Public/Assets directory. I've also cleared my tmp directory. Restarted my server and for some reason the collapse functionality still doesn't work.

有没有其他人这样做过?关于我接下来应该尝试什么的任何想法?

Has anyone else done this? Any ideas on what I should try next?

推荐答案

经过调试和谷歌搜索得到答案后,我发现我需要将 jquery-rails 更新到 1.0.18

After debugging and Googling for an answer I found that I needed to update jquery-rails to 1.0.18

一旦我这样做了,一切都很好.

Once I did that everything worked fine.

这篇关于从蓝图切换到 Twitter Bootstrap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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