[Rails] Re: Testing image_tag :src (asset id issue)
DK wrote:
> This seems like it should be real easy to do but I have not found any
> documentation:
>
> I have an image tag in a page:
>
> <%= image_tag "arrow_green.gif", :alt => "image did not load" %>
>
>
Slightly off your question, but...that's a terrible abuse of the alt
attribute. It should have text that can take the place of the image in
non-graphical browsers. "Image die not load" is inappropriate alt
content and is dealt with by the browser in any case.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home