Hi
On Tue, Mar 1, 2016, at 07:44, fugee ohu wrote:
> In my view:
>
> <a href= "<%= task.name %>" data-description = "<%= task.comment %>"
> data-gallery ><%= image_tag(task.name.thumb) %></a>
>
I don't know if it's typo in your mail or you just don't notice but
this:
<a href= "<%= task.name %>" data-description = "<%= task.comment %>"
data-gallery >
will have an empty data-description attribute because there are spaces
between the equal sign so they just become another attributes
(data-description = "content" -> three different attributes, two of
which are invalid).
Correct one is:
<a href="<%= task.name %>" data-description="<%= task.comment %>"
data-gallery>
--
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/1456807736.1306344.535808354.2F22A50A%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment