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 [email protected]
To
unsubscribe from this group, send email to
[email protected]
For more options,
visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
You can pass the :disabled option to FormTagHelper#check_box_tag or
FormHelper#check_box to render an uneditable checkbox.
Regards,
Craig