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']]}
--
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.