2010/5/5 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
>> 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.
I've installed master branch and t doesn't work correctly:
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".
Using:
config.columns[:color].options = { :options => [["white",0], ["black",1]] }
or:
config.columns[:color].options = { :options => [["white","0"],
["black","1"]] }
Then in the list and show views I see values "Yes" / "No".
Using:
config.columns[:color].options = { :options => {"IP"=>false,
"Registro"=>true} }
Then in the list and show views I see values "black" / "No".
I expect I should see "black" / "white" in both the view and show views.
--
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.