Skip to content

Instantly share code, notes, and snippets.

@meaganewaller
Created January 7, 2015 18:19
Show Gist options
  • Save meaganewaller/7f8f62cce8631f03cf74 to your computer and use it in GitHub Desktop.
Save meaganewaller/7f8f62cce8631f03cf74 to your computer and use it in GitHub Desktop.
bootstrap modal not working :(
<div class="modal-header">
<!-- modal body & stuff goes here -->
</div>
def modal_action
respond_to do |format|
format.html
format.js
end
end
$("#modal-window").html("<%= j render("modal_action") %>");
$("#modal-window").modal('show');
@mgedmin
Copy link

mgedmin commented Jan 7, 2015

I don't see a <div class="modal-dialog"> or a <div class="modal-content"> anywhere in your HTML. Could that be the problem?

Which bootstrap version do you use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment