El Sunday 01 March 2009 00:57:12 Namit escribió: > The Rails app I am working on has the following layout: > app: > controller: > account_controller.rb > admin: > account_controller.rb > > Where the first account controller is of class AccountController < > ApplicationController > The second account controller is the one using Active Scaffold. it is > of class Admin::AccountController < ApplicationController > Adding the following action link causes an incorrect controller to be > specified in the URL > > config.action_links.add 'reload', > > :action => "reload", > :type => :record, > :label => 'Reload', > :method => :post > > /admin/admin/reload?id.... > > where it should be > > /admin/account/reload?id > > Any ideas on how to fix this? Explicitly specifying the controller > doesn't help.
It's working for me, I get http://localhost:3000/users/reload/1?_method=post&authenticity_token=2ca44df5d5aade0f6eec95f3034054208c8bf52f That url is using default routes (map.connect ':controller/:action/:id'). Have you added a route? Maybe your route is wrong. -- Sergio Cambra .:: entreCables S.L. ::. Nicolás Guillén 6, locales 2 y 3. 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 -~----------~----~----~----~------~----~------~--~---
