On Martes, 15 de Febrero de 2011 12:58:12 thoen escribió: > I have an admin area in my site. All of the controllers used in this > admin area sit in a subdirectory called 'admin' under the controllers > folder. A few of these controllers use active scaffold without issue. > > I am now trying to add an embedded scaffold for a new controller that > sits in the same admin folder. But I can't figure out the proper way > to reference the controller in the render call so that AS can find the > controller. > > The controllers name is contact_histories. Its class is > Admin::ContactHistoriesController. > > I have tried: > render :active_scaffold => 'admin/contact_histories' > render :active_scaffold => 'contact_histories' > render :active_scaffold => 'admin_contact_histories' > > Can I use embedded AS with a subfoldered controller? If so, how should > I reference it.
You should use render :active_scaffold => 'admin/contact_histories' Do you get some error? > > Your help and advice is greatly appreciated. -- 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.
