Hi, I have a numeric column which can be 0 or 1 (not NULL). I want it
to be displayed as "white" / "black" so I set in the controller:

    config.columns[:color].form_ui = :select
    config.columns[:color].options = {:options => {"white"=>false,
"black"=>true}}

It is correctly displayed in create and update views in which I see a
select box with "white" and "black" options. Ok.
But in list view I see "Yes" / "No".

A workaround is a helper method:

   def color_column(entry)
     if entry.color
       "black"
     else
       "white"
     end
   end

But I wonder if it's possible to avoid this workaround by setting some
appropriate parameter in the controller. Is it possible?
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.

Reply via email to