I have a page where, once the user enters it, I want to disable some
buttons. This because the user must select a row for them to be
accessible. To be more specific, they are edit/delete buttons. So,
basically, I want them disabled if there is no row in selected in the
My problem is that I don’t know the proper component to use. This is the
way I’m trying right now:
<%= link_to image_submit_tag(“btn_delete.png”, :id => “btn_delete”,
:title => “Delete report”, :class => “btn_delete”, :disabled => true),
:action => “verify_availability” %>
The verify_availability method is in reports controller, and it verifies
if the user is able to delete that report. This will create an HTML
anchor with an input type=“image” inside. This creates another problem:
:disabled => true doesn’t work on IE (and only on IE). So, is there a
workaround for this issue?
Thanks for your time.