On Lunes, 15 de Marzo de 2010 20:18:30 jopher91 escribió:
> I set up a column with a singular association, which limits the
> available values based on the value of another field (pretty much
> identical to the "Chaining Form Fields" page of the wiki).
> But when I try to make the field editable using
> config.columns[:mycolumn].inplace_edit = :ajax, it breaks when the
> scaffold is nested inside another.
> The problem, which I was able to patch, is that the URL used by the
> ajax call doesn't specify the controller, so it defaults to the
> controller of the enclosing scaffold, instead of the nested scaffold.
> (I'm using the rails 2.3.2 version, but the relevant code seems the
> same in the master version.)
>
> My fix is thus:
>
> File: list_column_helpers.rb
> Method: active_scaffold_inplace_edit
> Change: added
>
>      :controller => params_for[:controller]
>
> to the params list in the call to "url_for"

Fixed in master and rails-2.3 branch, thanks


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