check out _nested partial
parent controller isn't sent and active_scaffold_controller_for(model) not
allways work if you have more than one controller for the same model.
However you can override nested (in the parent's view folder) and add that
as parameter to the render()

On Thu, May 28, 2009 at 3:51 PM, David Richardson <
[email protected]> wrote:

>
>
> > > Is there an ActiveScaffold method that returns the name of the parent
> > > of a nested controller?
> >
> > I'm not sure, try with params[:parent_controller]
>
> Only :parent_model is available in params. It isn't difficult the
> model name from this.
> I was wondering if there is a way to avoid that, though.
>
> thks,
> david
> >
>

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