This project is archived and is in readonly mode.
sending :alt => nil to an image tag should omit the images alt tag
image_tag "foo.png", :alt => nil # => <img alt="Foo" src="/images/foo.png" />
I agree that images should have alt tags, and I agree that the default is sensible. However, if I explicitly send :alt => nil, I expect it to omit the alt attribute altogether, to be consistent with :class and other html attributes.
I plan to submit a patch momentarily.
Comments and changes to this ticket
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>