store multiple checkbox values in single column of table
135 views
Skip to first unread message
mack gille
unread,
Aug 5, 2013, 7:09:15 AM8/5/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
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..
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
If you want to store multiple on/off switches together, then Binary is
your friend.
No, Yes, No, No, Yes, Yes, No
0100110
Colin Law
unread,
Aug 5, 2013, 10:09:27 AM8/5/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
On 5 August 2013 12:09, mack gille <li...@ruby-forum.com> 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.