OSDN Git Service

Fix issue with removing group
authorrandx <dmitriy.zaporozhets@gmail.com>
Mon, 22 Oct 2012 18:21:34 +0000 (21:21 +0300)
committerrandx <dmitriy.zaporozhets@gmail.com>
Mon, 22 Oct 2012 18:21:34 +0000 (21:21 +0300)
app/controllers/admin/groups_controller.rb

index bfde654..0bba019 100644 (file)
@@ -64,7 +64,7 @@ class Admin::GroupsController < AdminController
   def destroy
     @group.destroy
 
-    redirect_to groups_url, notice: 'Group was successfully deleted.'
+    redirect_to admin_groups_path, notice: 'Group was successfully deleted.'
   end
 
   private