Bootstrap modal in ruby on rails not working

后端 未结 2 1461
鱼传尺愫
鱼传尺愫 2021-01-14 03:38

I\'m trying to implement a modal to create a new user for my app. For some reason a can\'t make it work.

This code just fade in and out, and no modal is showing up,

2条回答
  •  -上瘾入骨i
    2021-01-14 03:52

    You need to remove the hide class from the #myModal modal, because that's given it a display: none !important CSS rule, that's why you can't see it:

    Check with this:

    
    

    And most probably you'll need to wrap your .modal-header within a

提交回复
热议问题