The generated delete URL is. http://localhost:3000/admin/scaffolds/users/delete/64?_method=delete&authenticity_token=G6rRnB%2Bm4yhyzcuHdRbB64t6KuqrnXQuWAqwd3zbdEc%3D
This does look like a routing problem of sorts. I did not have the "map.resources :users, :active_scaffold => true" in my routes, but adding such does not change the resulting URL nor does it resolve the exception. Here are my routes. ActionController::Routing::Routes.draw do |map| map.root :controller => 'redirector', :action => 'index' map.resources :users map.resources :users, :active_scaffold => true map.resources :admins map.resource :admin_session, :controller => '/admin/sessions' map.connect '/admin', :controller => '/admin/menu', :action => 'instruments' map.connect ':controller/:action/:id.:format' map.connect ':controller/:action/:id' map.connect '*anything', :controller => 'redirector', :action => 'index' end Simplifying my routes to contain the following does not help either... ActionController::Routing::Routes.draw do |map| map.resources :users map.resources :users, :active_scaffold => true map.connect ':controller/:action/:id.:format' map.connect ':controller/:action/:id' end Note that my scaffold controller does not inherit directly from ApplicationController. Could that be part of the problem? app/controllers/admin/scaffolds/users_controller.rb class Admin::Scaffolds::UsersController < Admin::ScaffoldsController active_scaffold :user do |config| ... end On Jul 17, 1:05 am, "Sergio Cambra .:: entreCables S.L. ::." <[email protected]> wrote: > On Jueves, 16 de Julio de 2009 20:19:13 Courtland escribió: > > > Hi, > > > Possible heads up here. Using the latest master branch with rails > > 2.3.2, I am unable to delete a record from within a scaffold's list > > view. I receive an ActionController::UnknownAction exception. Rolling > > back to the previous commit in active_scaffold master branch seems to > > fix the problem for me, thus I am running that for now. > > What url you get in the link? > > > > > > >http://github.com/activescaffold/active_scaffold/commit/081ec6367c27c... > >667aa484ab50d3af0e883#comment_25536 > > > Processing Admin::Scaffolds::UsersController#64 (for 127.0.0.1 at > > 2009-07-16 11:12:49) [DELETE] > > Parameters: {"eid"=>"77a75ba90091a7c137efb8b09c3f7009", > > "authenticity_token"=>"G6rRnB+m4yhyzcuHdRbB64t6KuqrnXQuWAqwd3zbdEc="} > > Admin Load (0.4ms) SELECT * FROM "admins" WHERE ("admins"."id" = > > 1) LIMIT 1 > > AdminRole Load (0.3ms) SELECT * FROM "admin_roles" WHERE > > ("admin_roles"."id" = 1) > > > ActionController::UnknownAction (No action responded to 64. Actions: > > add_existing, attributes_hash_is_empty?, batch_destroy, > > before_create_save, client_ip, client_mac, create, delete, destroy, > > destroy_existing, edit, edit_associated, export, > > find_or_create_for_params, index, init_session_var, last_action_name, > > last_controller_path, list, nested, new, new_existing, > > redirect_to_last_controller_index, render_field, row, show, > > show_export, show_search, store_action_name, store_controller_path, > > table, update, update_column, update_record_from_params, and > > update_table): > > -- > 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 -~----------~----~----~----~------~----~------~--~---
