Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/controllers/tasks_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class TasksController < ApplicationController
def index
@tasks = Task.all
end

def show
Expand Down
12 changes: 12 additions & 0 deletions app/views/tasks/index.html.slim
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
h1 タスク一覧

= link_to '新規登録', new_task_path, class: 'btn btn-primary'

.mb-3
table.table.table-hover
thead.thead-default
tr
th= Task.human_attribute_name(:name)
th= Task.human_attribute_name(:created_at)
tbody
- @tasks.each do |task|
tr
td= task.name
td= task.created_at