Re: disabled button

Eduardo Bueno
Wed, 21 Oct 2009 13:46:40 -0000

bill walton wrote:
> Hi Eduardo,
>
> Maybe it''s just too early here, but I''m not following
you.  For
> starters, why are you using _both_ link_to and image_submit_tag ?
>
> It''s kind of interesting that it''s working at all.
I''d see if the HTML
> being generated (using Firefox, of course) validates.
>
> Assuming that the buttons you want to disable are, in fact, form submit
> buttons, I''d lose the ''link_to'' as a first step.
Let us know what the
> behavior is when you do that.
>
> HTH,
> Bill

I''m using link_to with image_submit_tag justly to avoid using a form.
People often use link_to with image_tag for image links, and since both
HTML anchors and imgs can''t be disabled, I thought of using that. Note
that I''m a starter too, and if this is not the better approach please
let me know.