This is the example that Foundation gives me.
<a href="#" data-reveal-id="myModal">Click Me For A Modal</a>
<div id="myModal" class="reveal-modal" data-reveal>
<h2>Awesome. I have it.</h2>
<p class="lead">Your couch. It is mine.</p>
<p>I'm a cool paragraph that lives inside of an even cooler modal. Wins!</p>
<a class="close-reveal-modal">×</a>
</div>
This is my link
<%= link_to "watch", video %>
What i want it when i click on that link i want my videos/show page to show or the video in that show page. Im not sure how to use the data-reveal-id in a link_to in rails.
<%= link_to "watch", video, data: {:"reveal-id" => "myModal", :"reveal-ajax" => true} %>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.