RailsAdmin custom action to restore soft deleted records
问题 I am using Rails 4.1.14 with rails_admin 0.8.1, mongoid 5.0 and mongoid_paranoia. I created RailsAdmin custom action to restore soft deleted Users. class Restore ... register_instance_option :controller do Proc.new do object.restore ... end end end But I keep getting User with id '5695997df5740c17b0000002' could not be found From my develoment.log Started GET "/admin/user/5695997df5740c17b0000002/restore" for 127.0.0.1 at 2016-01-12 16:35:04 -0800 Processing by RailsAdmin::MainController