> On Jan 23, 2016, at 7:28 PM, fugee ohu <fugee279@gmail.com> wrote:
>
> I have to pass an attribute to links for bootstrap-image-gallery, the docs say to build a link like this
> <a href="images/apple.jpg" title="Apple" data-gallery> so then data-gallery is called an attribute in html5, would that be a "data attribute" in rails? how would i create the link with link_to
<%= link_to 'Apple', 'images/apple.jpg', data: { gallery: 'some value' } %>
If you've built a delete link before, you will recall those have data: { confirm: 'Are you sure?' } on them.
Walter
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/745d996b-f664-4a6c-a82e-5fdd8e3917c4%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/F589ED46-5962-4C7B-AE48-61F555F11BBD%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment