Question: displaying uneditable boolean data as a check box?

Hi everyone. Is there a reasonably easy way, in rails, to display a boolean column in, say, a model index view, and have it show up as an uneditable check box? Right now it’s showing up as just the string ‘true’ or ‘false’ in the index view, while it shows up as a check box in an editing or creation view. It would be nice to have a unified view.

Thanks in advance, Ken

You can pass the :disabled option to FormTagHelper#check_box_tag or FormHelper#check_box to render an uneditable checkbox.

Regards, Craig