hi all, i need to store multiple checkbox values in single column of a table. here is my short code https://github.com/Kumar2013hk/check.git .Please help me in this regard.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8fa65752abf7a38feb11488505a4519e%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Joel Pearson
2013-Aug-05 13:56 UTC
Re: store multiple checkbox values in single column of table
If you want to store multiple on/off switches together, then Binary is your friend. No, Yes, No, No, Yes, Yes, No 0100110 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/becd9106b4133646ca8b88cdd7bd25b0%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Colin Law
2013-Aug-05 14:09 UTC
Re: store multiple checkbox values in single column of table
On 5 August 2013 12:09, mack gille <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> hi all, > i need to store multiple checkbox values in single column of a table. > here is my short code https://github.com/Kumar2013hk/check.git .Please > help me in this regard..googling for rails bitfield provides a number of hits, though I have no personal experience of the suggestions. First, though, don''t bother unless you have a good reason. Just have a column per boolean. Adopt the KISS technique. Colin> > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8fa65752abf7a38feb11488505a4519e%40ruby-forum.com. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuUZH%2ByH2juzYCz5N35%2BeuiQEA2ehvtbS6nnVHBiaTFpA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.