diff options
author | David Gay <david@davidgay.org> | 2021-05-19 21:16:15 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-19 21:16:15 -0400 |
commit | 5afdcd12f04102b5cf5d5a310981bc576a992119 (patch) | |
tree | 2f8a8768856268cf755a6c4eb82f768f8c02affc /app/views/activities | |
parent | e941a28056142ee239bbba623f03537aab0ae039 (diff) |
Implement crafting from the hearth forge
Diffstat (limited to 'app/views/activities')
-rw-r--r-- | app/views/activities/show.html.erb | 5 |
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 %> |