sferik/rails_admin — pull request #898 by chrishaines (2011-12-29 08:25:29+00:00)
Title: Destroying redirects to index path

Currently, accessing the destroy path through the show path redirects it back to the old show path, resulting in a 404 error. These commits change the behavior so that destroying always redirects to the index path of the model.

I added a AbstractModel#get! method that raises a RailsAdmin::ObjectNotFound error when the object cannot be found. I changed ApplicationController#get_object to use this method instead.