summaryrefslogtreecommitdiff
path: root/app/views/task_lists/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/task_lists/show.html.erb')
-rw-r--r--app/views/task_lists/show.html.erb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/task_lists/show.html.erb b/app/views/task_lists/show.html.erb
index 6ddffe2..3d0a784 100644
--- a/app/views/task_lists/show.html.erb
+++ b/app/views/task_lists/show.html.erb
@@ -1,4 +1,10 @@
-<%= @task_list.name %>
+<h1><%= @task_list.name %></h1>
+
+<%= form_for @task, url: [@task_list, @task] do |f| %>
+ <%= f.label :name %>
+ <%= f.text_field :name %>
+ <%= f.submit "Create task" %>
+<% end %>
<ul>
<% @task_list.tasks.each do |task| %>