Hello there,
I’m using the image_tag helper to add images on the page, however it seems like the alt attribute is ignored.
Neither the code solutions below have not produced the expected output.
<%= image_tag 'title.jpg', :class => 'title', :alt => 'my title goes here' %>
<%= image_tag 'title.jpg', { :class => 'title', :alt => 'my title goes here' } %>
Only one parameter at a time seems to be included, the first one.
Can you please advice?
Thanks
Andrea