Courtland wrote ...

> 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.
> 
> http://github.com/activescaffold/active_scaffold/commit/081ec6367c27cea80aa667aa484ab50d3af0e883#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):

Looks like your routes might be messed up somehow.

I'm not experiencing any problems with the latest master branch. The
same action produces the expected results for me.

Processing Admin::UsersController#destroy (for 127.0.0.1 at 2009-07-16
12:54:20) [DELETE]
  Parameters: {"action"=>"destroy",
  "authenticity_token"=>"lqufCBgIloycQOLhTS1Wm6fgKXmBb8X+uyWUMiLlyRY=",
  "_method"=>"delete", "id"=>"42", "controller"=>"admin/users"}

... [eliding DB logs]

Rendering destroy
Rendered _messages (1.6ms)
Completed in 225ms (View: 32, DB: 116) | 200 OK
[http://localhost/admin/users/42?_method=delete&authenticity_token=lqufCBgIloycQOLhTS1Wm6fgKXmBb8X%2BuyWUMiLlyRY%3D]

Somthing different in our models? My app uses restful_authentication and
the User model is pretty simple:

class User < ActiveRecord::Base
  include Authentication
  include Authentication::ByPassword
  include Authentication::ByCookieToken

  has_many :news_items, :foreign_key => 'author_id'
  has_many :passwords, :dependent => :destroy
  has_and_belongs_to_many :roles

  ...

end


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