On Miércoles, 5 de Mayo de 2010 10:49:56 Iñaki Baz Castillo escribió:
> 2010/5/5 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
> > On Martes, 4 de Mayo de 2010 18:08:59 Iñaki Baz Castillo escribió:
> >> 2010/5/4 Atastor <[email protected]>:
> >> > Checkout "Enum Columns" in the wiki.
> >>
> >> Ok, understood. However it seems to much "overloaded" to do all of
> >> that stuff (I mean writing into the locale file and so...).
> >
> > Enum columns use a value, and use I18n to convert the value to a text. In
> > your example, you don't need to translate anything, simply use a nested
> > array instead of a hash:
> > config.columns[:color].options = {:options => [["white",'0'],
> > ["black",'1']]}
>
> Yes, but this doesn't work in list view in which I still see
> true/false. Do I miss something?

It wasn't working for integer columns, I had used it only with string columns. 
It's fixed currently in master branch.

>
> PS: Why is an array preferred over a hash? both work well for me, but
> a hash is easier to manage.

Yes, you can use a hash, I haven't tried it



-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [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