Joined August 2016
·
endlessly stuck
Posted to
Open a rails form with Twitter Bootstrap modals
over 1 year
ago
I'm really stuck in trying to get this setup.
For Rails 4 users, one thing to note is that the require bootstrap/modal needs to be / instead of -.
Also, see this post. The suggestion was to add $('#modal-window').modal('show'); to the end of the js file and to keep the js.erb file in the views folder instead of the app assets javascripts folder, so that the render action can work.
I still can't get this working though. When I click the link that is supposed to render the modal, I get a greyed out screen but no modal. No console errors and html inspector shows modal container is recognised. The network inspector does not show any path as available.
Link i was referring to is here: http://stackoverflow.com/questions/39197196/rails-4-bootstrap-modal-form-setup