complete del and destroy funciton for desgin
This commit is contained in:
1 parent
29ce3199ec
commit
a272b871e2
5 files changed
+59
-7
No files matched your search
@@ -1,5 +1,7 @@
|
||||
class Admin::DesignsController < ApplicationController
|
||||
layout "admin"
|
||||
before_filter :authenticate_user!
|
||||
before_filter :is_admin?
|
||||
|
||||
|
||||
def index
|
||||
@@ -26,6 +28,9 @@ class Admin::DesignsController < ApplicationController
|
||||
end
|
||||
|
||||
def destroy
|
||||
@design = Design.find(params[:id])
|
||||
@design.destroy
|
||||
redirect_to admin_designs_url
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
Reference in new issue
Block a user