# Question: displaying uneditable boolean data as a check box?

**URL:** <https://www.ruby-forum.com/t/question-displaying-uneditable-boolean-data-as-a-check-box/153336>\
**Category:** Rails\
**Created:** [November 15, 2008, 1:34am UTC](https://www.ruby-forum.com/t/question-displaying-uneditable-boolean-data-as-a-check-box/153336 "2008-11-15T01:34:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenneth\_McDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/dc4da7/32.png) [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Post date:** [November 15, 2008, 1:34am UTC](https://www.ruby-forum.com/t/question-displaying-uneditable-boolean-data-as-a-check-box/153336/1 "2008-11-15T01:34:17Z")

</div>

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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.   
 To post to this group, send email to removed\_email\_address@domain.invalid   
 To unsubscribe from this group, send email to removed\_email\_address@domain.invalid   
 For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en  
-~----------~----~----~----~------~----~------~--~---

---

<div class="post-metadata">

**Author:** ![Kenneth\_McDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/dc4da7/32.png) [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Post date:** [November 15, 2008, 2:03am UTC](https://www.ruby-forum.com/t/question-displaying-uneditable-boolean-data-as-a-check-box/153336/2 "2008-11-15T02:03:30Z")

</div>

You can pass the :disabled option to FormTagHelper#check\_box\_tag or  
FormHelper#check\_box to render an uneditable checkbox.

Regards,  
Craig
