> Try adding :nested => true to params too
Still an error. The 9659 id is that of the related Institution record,
not the Diploma record.
Seems like we should be finding and deleting the record from the join
table, no? Which, in this case, is the diplomas_institutions table.
Processing Admin::DiplomasController#destroy_existing (for ::1 at
2010-04-12 09:56:42) [DELETE]
Parameters: {"eid"=>"96d58316c473e2f24db9c53a79cf268f",
"parent_column"=>"diplomas", "nested"=>"true",
"action"=>"destroy_existing", "_method"=>"delete", "id"=>"5536",
"parent_model"=>"Diploma", "controller"=>"admin/diplomas"}
Diploma Load (0.3ms) SELECT * FROM `diplomas` WHERE
(`diplomas`.`id` = 9659)
ActiveRecord::RecordNotFound (Couldn't find Diploma with ID=9659):
vendor/rails/activerecord/lib/active_record/base.rb:1586:in
`find_one'
vendor/rails/activerecord/lib/active_record/base.rb:1569:in
`find_from_ids'
vendor/rails/activerecord/lib/active_record/base.rb:616:in `find'
vendor/plugins/active_scaffold/lib/active_scaffold/finder.rb:173:in
`find_if_allowed'
vendor/plugins/active_scaffold/lib/active_scaffold/actions/nested.rb:
198:in `do_destroy_existing'
vendor/plugins/active_scaffold/lib/active_scaffold/actions/nested.rb:
108:in `destroy_existing'
vendor/rails/actionpack/lib/action_controller/base.rb:1331:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:1331:in
`perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:617:in
`call_filters'
--
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.