Some links

This commit is contained in:
2025-07-15 21:22:10 +03:00
parent 586f2cf3ee
commit 434b5b184e
4 changed files with 11 additions and 1 deletions
+4 -1
View File
@@ -43,7 +43,10 @@ class TasksController < ApplicationController
end
end
def delete; end
def delete
@task.destroy!
redirect_to tasks_path(project: @task.project)
end
private
+1
View File
@@ -5,3 +5,4 @@ section= @project.description
section
ul.links
li= link_to 'Edit', edit_project_path(@project)
li= link_to 'Tasks', tasks_path(project: @project)
+2
View File
@@ -10,5 +10,7 @@
tr
td= link_to task.full_number, task_path(task)
td= task.title
td
= link_to 'Edit', edit_task_path(task)
- else
p No tasks
+4
View File
@@ -3,3 +3,7 @@ div
h1= @task.title
section= @task.description
section
ul.links
li= link_to 'Edit', edit_task_path(@task)