On Martes, 3 de Agosto de 2010 12:18:08 Benjamin Adler escribió:
> Hello!
>
> In order to render my custom widget to associate in a has_many
> horizontal subform (batches has_many storage_assignments), I overwrote
> BatchesController::edit_associated. Now a click on "Create Another"
> delivers the desired javascript creating my widget.
>
> Unfortunately, the initial edit-view is unaffected by this change, so it
> still shows the old select-boxes instead. After browsing through some
> rather long stack-traces, I'm still at a loss as to wich method I should
> overwrite in order to get what I want.
>
> Do I need to overwrite whatever renders the
> "_horizontal_subform.html.erb" partial? If yes, which method is that and
> will this also affect the content delivered by ajax when clicking
> "Create Another"?

I don't know how you overrided edit_associated view or action, but 
edit_associated usually renders horizontal_subform (or what you set in 
config.subform.layout), so overriding horizontal_subform partial you will get 
the same html for initial edit-view and create another action.

>
> What should I do?
>
> thanks!
> ben

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