We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aa1ea3 commit fa559b7Copy full SHA for fa559b7
app/controllers/lists_controller.rb
@@ -46,6 +46,7 @@ def update
46
47
def destroy
48
@list = List.find(params[:id])
49
+
50
@list.destroy
51
redirect_to root_path
52
end
app/policies/list_policy.rb
@@ -21,4 +21,8 @@ def index?
21
def show?
22
true
23
24
25
+ def destroy?
26
27
+ end
28
0 commit comments