I've got an image display page. I want to add a modal with a larger version of the image. I have created a button according to the bootstrap instructions that does the job:
<button type="button" data-toggle="modal" data-target="#myModal">View</button>
I'm trying to apply the data-toggle and data-target portions of that code to my image_tag but I can't figure out how. Here's my best guess:
<%= image_tag(@illustration.image.url), :options => { :data-toggle => "modal", :data-target => myModal} %>
Thanks for any suggestions.