On Lunes, 14 de Noviembre de 2011 12:56:23 Ole Rummel escribió:
> > How is you override? How do you apply the background color? You could set
> > background color with css, using a class applied to td, and you can
> > override column_class helper method to set another class if you need it,
> > probably it's easier.
> 
> Hi,
> thanks again for this quick answer. I use a colorpicker to select the
> color from the string in that particular cell.
> Looks like this:
> 
> def color_column(record)
>   color_string = record.color || '-'
> 
> raw <<-EOT
> <div style="background-color:#{record.color}; text-align:center;"
> id="disabled_colorpickerHolder">#{color_string}</div>
>     EOT
> end

You are right, you have to use a override for that. I revised inplace_edit 
feature and changed update_column view to use overrides and list_ui, removing 
some duplicated and old code. You can use :git instead of latest gem, or wait 
some days to new version

-- 
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.

Reply via email to