On Martes, 2 de Marzo de 2010 15:32:10 Antonio Bardazzi Multicore-Sistemi.com escribió: > Many thanks Sergio you are amazing efficient. > > Now it works for :select but if I set form_ui = :record_select i get > the same error: > > NoMethodError: undefined method 'each' (for the associated model)
Thanks for the report, it's fixed in latest master > > On 2 Mar, 14:58, "Sergio Cambra .:: entreCables S.L. ::." > > <[email protected]> wrote: > > On Martes, 2 de Marzo de 2010 12:45:42 Antonio Bardazzi > > Multicore-Sistemi.com > > > > escribió: > > > I am trying to use inplace_edit with a plural association (has_many) > > > and a form_ui = :select. > > > > > > If I use inplace_edit = :ajax a method missing exception is raised. > > > If I use inplace_edit = true the link GET the URL and nothing is > > > saved. > > > > It's fixed now for inplace_edit ajax. > > > > > There are 4 screenshots describing this errors and my models and > > > controllers: > > > 1-http://imagebin.ca/view/HGt9Sm.html > > > The ajax inplace_edit is correctly shown. > > > > > > 2-http://imagebin.ca/view/TH8rACe.html > > > The POST has incorrect parameters. > > > > > > 3-http://imagebin.ca/view/eTsJ9XT.html > > > The inplace_edit is shown. > > > > > > 4-http://imagebin.ca/view/0jpBTYSI.html > > > The link GET the page. > > > > > > My two models: > > > > > > class Recording < ActiveRecord::Base > > > has_many :recording_events > > > end > > > > > > class RecordingEvent < ActiveRecord::Base > > > belongs_to :recording > > > end > > > > > > My two controllers: > > > > > > class RecordingsController < ApplicationController > > > active_scaffold :recordings do |config| > > > config.label = 'Registrazioni' > > > config.columns[:recording_events].label = 'Eventi' > > > config.columns[:recording_events].form_ui = :select > > > config.columns[:recording_events].inplace_edit = true > > > end > > > end > > > > > > class RecordingEventsController < ApplicationController > > > active_scaffold :recording_event do |config| > > > config.label = 'Eventi' > > > config.columns[:recording].label = 'Registrazione' > > > end > > > end > > > > > > Many thanks > > > > -- > > Sergio Cambra .:: entreCables S.L. ::. > > Mariana Pineda 23, 50.018 Zaragoza > > T) 902 021 404 F) 976 52 98 07 E) [email protected] -- 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.
