@@ -534,22 +534,22 @@ def button_tag(content_or_options = nil, options = nil, &block)
534534 #
535535 # ==== Examples
536536 # image_submit_tag("login.png")
537- # # => <input alt="Login" src="/assets/login.png" type="image" />
537+ # # => <input src="/assets/login.png" type="image" />
538538 #
539539 # image_submit_tag("purchase.png", disabled: true)
540- # # => <input alt="Purchase" disabled="disabled" src="/assets/purchase.png" type="image" />
540+ # # => <input disabled="disabled" src="/assets/purchase.png" type="image" />
541541 #
542542 # image_submit_tag("search.png", class: 'search_button', alt: 'Find')
543- # # => <input alt="Find" class="search_button" src="/assets/search.png" type="image" />
543+ # # => <input class="search_button" src="/assets/search.png" type="image" />
544544 #
545545 # image_submit_tag("agree.png", disabled: true, class: "agree_disagree_button")
546- # # => <input alt="Agree" class="agree_disagree_button" disabled="disabled" src="/assets/agree.png" type="image" />
546+ # # => <input class="agree_disagree_button" disabled="disabled" src="/assets/agree.png" type="image" />
547547 #
548548 # image_submit_tag("save.png", data: { confirm: "Are you sure?" })
549- # # => <input alt="Save" src="/assets/save.png" data-confirm="Are you sure?" type="image" />
549+ # # => <input src="/assets/save.png" data-confirm="Are you sure?" type="image" />
550550 def image_submit_tag ( source , options = { } )
551551 options = options . stringify_keys
552- tag :input , { "alt" => image_alt ( source ) , " type" => "image" , "src" => path_to_image ( source ) } . update ( options )
552+ tag :input , { "type" => "image" , "src" => path_to_image ( source ) } . update ( options )
553553 end
554554
555555 # Creates a field set for grouping HTML form elements.
0 commit comments