Hi, There are two different flavours of inplace_edit.
inplace_edit = :ajax When clicking inplace edit link server is asked to send corresponding input form. Might be used for Recordselect, Multiselect, dynamic data, ... inplace_edit = true When clicking inplace edit link input form will be copied from a hidden template without server interaction. Might be used for boolean, static select, calendar_date_select,.... You just have to pick the right strategy for your specific attribute. :-) number should be inplace_edit = true select might be both: lookup tables, static selects => true dynamic select options => ajax -- Volker On Nov 24, 10:00 pm, Mat <[email protected]> wrote: > The API docs say this about inplace_edit: > > > Since v2.3: > > > For columns with form_ui or form override, it will copy the fields from a > > hidden template in the column > > header instead of use the default InPlaceEditor. > > > If inplace_edit is set to :ajax, an AJAX request will be made to get the > > field, that option is needed for > > in place editing with RecordSelect. > > What is the 'hidden template in the column header' and how do I access > it? What does "an AJAX request will be made to get the field, that > option is needed for in place editing with RecordSelect" mean? > > I'm trying to add support for inplace editing for :select and currency > fields but having some trouble figuring out what's already here. Any > pointers would be appreciated. > > Thanks > > M. -- 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.
