Hi, thanks for the quick answer. The above is just an example to get the idea of live updating.
What I have is a model Status with a column :summary and the following overrides def summary_form_column(record, options) text_area :record, :summary, options.merge(:size => "80x40", :value => record.summary || record.default_summary) end def summary_to_html__form_column(record) record.summary_to_html end Currently I see the last version of my :summary rendered as html. What I want is live rendering of the html during editing of the text_area. So I need to somehow get the summary_to_html_form dynamic. Thanks On Nov 14, 12:37 pm, "Sergio Cambra .:: entreCables S.L. ::." <[email protected]> wrote: > On Lunes, 14 de Noviembre de 2011 12:11:03 Ole Rummel escribió: > > > > > Hi, > > > is it possible to have a live update of a column value depending on > > and during the editing of another column value? > > > Lets say I have a model Cart and two columns :products > > and :total_price. Now I click on Edit and start adding products to my > > cart - what I want here is the concurrent update of the :total_price > > while adding the products. > > > Do I need to build something like that myself with a form override or > > is there a way using activescaffold? > > > Thanks in advance, > > > Ole > > You must enable update_columns and override render_field.js.erb view. I can > give you more tips if you explain your form in more detail, is products a > select form_ui or a subform? > > -- > 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.
