Thanks Sergio. So, the only way is via form override. Have you (or any) integrated a rich text editor in AS? I'm trying with YUI which looks the most stable.
On Jan 22, 5:28 am, "Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::." <[email protected]> wrote: > El Wednesday 21 January 2009 16:46:44 naaano escribió: > > > Wiki says: > > (api:column) css_class is used in List and Create/Update forms. > > However, this only happens for list and show. > > It happens as wiki says: "In lists is added to TD tag, and in forms is added > to DL tag, so you can set css for labels and fields". So it's not set in > input, select or textarea. > > > > > AS form_column_helpers.rb shows: > > > # the standard active scaffold options used for class, name and scope > > def active_scaffold_input_options(column, scope = nil) > > name = scope ? "record#{scope}[#{column.name}]" : "record[# > > {column.name}]" > > { :name => name, :class => "#{column.name}-input", :id => > > "record_#{column.name}_#{[params[:eid], params[:id]].compact.join > > '_'}"} > > end > > > which doesn't include column.css_class like in view_helpers.rb > > > def column_class(column, column_value) > > classes = [] > > classes << "#{column.name}-column" > > classes << column.css_class unless column.css_class.nil? > > ..... > > > shouldn't be column.css_class added to the form input method too? > > -- > Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::. > Nicolás Guillén 6, locales 2 y 3. 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 -~----------~----~----~----~------~----~------~--~---
