summaryrefslogtreecommitdiff
path: root/app/views/activities/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/activities/show.html.erb')
-rw-r--r--app/views/activities/show.html.erb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/activities/show.html.erb b/app/views/activities/show.html.erb
index 6db2fb2..84c19a4 100644
--- a/app/views/activities/show.html.erb
+++ b/app/views/activities/show.html.erb
@@ -9,4 +9,7 @@
<%= render "timer" %>
</div>
-<%= link_to "Start", start_activity_path(@activity), method: :post %>
+<%= form_with url: start_activity_path do |f| %>
+ <%= f.hidden_field :id, value: @activity.id %>
+ <%= f.submit "Start" %>
+<% end %>