diff options
Diffstat (limited to 'app/views/locations/show.html.erb')
-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 %> |