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? PS: Why is an array preferred over a hash? both work well for me, but a hash is easier to manage. -- 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.
