2010/5/5 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>: >> I've a column TINYINT(1) with values 0 and 1. in the controller: >> config.columns[:color].form_ui = :select >> config.columns[:color].options = { :options => [["white",false], >> ["black",true]] } >> >> Then in the list and show views I see values "black" / "No". > > AS was using "white" and true as possible values, so when value was false it > can't find the associated text, and it translates false to "No". I have fixed > it > now, so it uses the text as value only when value is nil.
I confirm that it works fine now :) Thanks. -- 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.
