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,

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at

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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs