Forum: Ruby on Rails disabling a check_box_tag

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
125639ddcc0b9119bb84e29416ace63a?d=identicon&s=25 Scott (Guest)
on 2007-03-17 18:02
(Received via mailing list)
Anyone know how to accomplish this? Can't seem to get it to work.


361ba1bcc1d2c5a8885dd093dbb96bb6?d=identicon&s=25 Michael Kovacs (Guest)
on 2007-03-17 18:12
(Received via mailing list)
in the list of checkbox attributes.... disabled='true'

or with a rails helper:

<%=check_box_tag :name, :value, selected, {:disabled => !enabled}%>

This topic is locked and can not be replied to.