On Miércoles, 28 de Octubre de 2009 19:25:14 Ryan Cannon escribió:
> Greetings,
>
> I've recently updated to Rails 2.3.4 and the latest version of
> ActiveScaffold and render_component (installed yesterday from git via
> script/plugin install).
>
> After the update I'm seeing most (but not all) of my nested scaffolds
> throwing a nil.to_sym error from
>
> lib/active_scaffold/constraints.rb
>
> when I log the error, it looks like
>
> active_scaffold_constraints is returning { nil => 54 } where 54 is the
> id of the model I'm embedding the scaffold into.
>
> When the scaffold works correctly, it logs { :model_id => 54 }

Can you post your associations' definition?
Probably the reverse association isn't being set automatically, try in 
script/console:
ParentModel.reflect_on_association(:association_name).reverse

ParentModel is the model for the main controller, and association_name the 
association which you are loading the nested scaffold for.

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