On Viernes, 12 de Febrero de 2010 00:51:15 Dirk escribió: > I have a scaffolds/scaffold_controllers directory, which I access via > embedded scaffolds from the admin controller (which is not in the > scaffolds directory). > > I have active scaffold controllers for two models with habtm. In the > scaffold controllers I specify action links to methods in the admin > controller. This works great when viewing top level records. However, > as soon as I open a nested scaffold, the action links break. They try > to route to scaffolds/admin/method instead of admin/method. > > Any thoughts on fixing this short of adding static routes?
It's hard to help you without viewing your code for the link: You can use named routes. If you are using url_for :controller => 'controller_name', add a leading / If you are using a string for the url, use absolute url (adding a leading / to the url) -- 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.
