Switching from Blueprint to Twitter Bootstrap

ε祈祈猫儿з 提交于 2019-12-08 05:38:08

问题


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.

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

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?


回答1:


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.



来源:https://stackoverflow.com/questions/9639657/switching-from-blueprint-to-twitter-bootstrap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!