Hmm, I'd advocate that you use images in this place so that people know it's not something that you can interact with. From a usability standpoint, if you provide a checkbox that looks like they can interact with, they might try. Keep it simple and obvious to the end-user.
On Fri, Jan 2, 2009 at 6:48 AM, Patrick Doyle <[email protected]> wrote: > if you are offended by HTML questions on this list, please feel free to > flame me off list. > > I would like to display a boolean value in my #index view as a checkbox that > is checked when true and blank when not true. Is there some markup that can > do this? Is it "legal" to embed an <input type="checkbox"> tag outside the > context of a form? Even if it's "legal", is it considered bad practice? > > I've poked around a little looking to see what others have done, and I could > embed a checkmark image in my page, or I could embed the proper Unicode code > for a checkmark, and hope that the browser has a font installed with that > character, but it seems to me that the browser must already know how to > display a checkmark, and in the principle of DRY, I should be able to reuse > it :-) > > --wpd > > > > > -- Robby Russell Chief Evangelist, Partner PLANET ARGON, LLC design // development // hosting w/Ruby on Rails http://www.planetargon.com/ http://www.robbyonrails.com/ aim: planetargon +1 503 445 2457 +1 877 55 ARGON [toll free] +1 815 642 4068 [fax] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

