Hi,

just add virtual attributes to your model (set and get).

in set you set the corresponding bit of your allowed_zone attribute
and in get you read corresponding bit

--
Volker

On Jun 7, 7:36 pm, Iñaki Baz Castillo <[email protected]> wrote:
> 2011/6/7 Андрей Коробков <[email protected]>:
>
> > May be, some of these gems 
> > (https://github.com/search?type=Repositories&language=Ruby&q=bitfield&;...) 
> > could help?...
>
> Thanks, but I think that my main problem would be the HTML
> representation of such bit values (checkboxes) in AS.
> I'll take a look to your link.
>
> --
> Iñaki Baz Castillo
> <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.

Reply via email to