diff options
author | David Gay <david@davidgay.org> | 2021-05-27 18:41:51 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-27 18:41:51 -0400 |
commit | 65c1ee3dbaf5c0a030dd28a7e3f41d47c7652cb1 (patch) | |
tree | 7536a43e8656d7cecc867c9a221fced1f225f731 /app/views/locations | |
parent | 2c2de801b4481695f3d1b6b14527116092cb1197 (diff) |
Move active action display with timer and results to a `LookController`
Diffstat (limited to 'app/views/locations')
-rw-r--r-- | app/views/locations/show.html.erb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/locations/show.html.erb b/app/views/locations/show.html.erb index bed97ac..0001c99 100644 --- a/app/views/locations/show.html.erb +++ b/app/views/locations/show.html.erb @@ -7,5 +7,9 @@ <div class="my-4"> <h2 class="text-xl"><%= link_to activity.name, activity_path(activity) %></h2> <p class="italic"><%= activity.description %></p> + <%= form_with url: start_activity_path(activity) do |f| %> + <%= f.hidden_field :id, value: activity.id %> + <%= f.submit "Start" %> + <% end %> </div> <% end %> |