twitter bootstrap modal does not work in rails3 layout?

浪尽此生 提交于 2019-12-24 11:07:10

问题


I have a twitter bootstrap modal dialog. I used the example here:

http://twitter.github.com/bootstrap/javascript.html#modals

and this works well by its self. Works well if I add this to a rails view like index.html.erb of one of my views. Though if I add the same stuff that works to my layout (specifically my navigation one) so that this modal can come down on ANY view in the app, while it works, it never "fades in" it is always behind a darkened screen. I am pulling my hair out trying to figure out why this is. I can literally take the modal div, slap it into the view and it works fine, if its in that layout though. No dice. I am not sure what I am missing or if this is just a bug in twitter boot strap modals or what? Anyone else have this issue? Am I missing something to add to the class of the modal?

来源:https://stackoverflow.com/questions/14629893/twitter-bootstrap-modal-does-not-work-in-rails3-layout

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