Displaying 2 results from an estimated 2 matches for "acts_as_bitfield".
2006 Jul 06
4
Using Integers to Store Bits of Information
Hi,
I am a very new to ruby on rails so please forgive me if someone has
asked this before.
I need to make a form with many checkboxes. Sometime ago I was using
Coldfusion and I chanced upon this great article on how to store flags
using binary numbers.
http://cfdj.sys-con.com/read/41674.htm
Just wondering if there is something similar in RubyOnRails that I can
learn from and use. That
2006 Feb 27
8
Change Bit Value To Text When Viewed
Hey All, very simple question for you folks ;)
I have a @commutes object that for each record there is a bit value set
(0/1) to denote if an accident occurred. What I want to do is have it
display "Yes" or "No" when I view the listing of commutes. I can get it to
display the bit value just fine with <%= commute.accident %> but how can I
get it so that when a record with