From 4425d03ce99f6c4085961b3390fd382076699031 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 12 May 2025 15:29:36 -0400 Subject: Even more places where the stream ID is needed --- app/views/admin/streams/edit.html.haml | 2 +- app/views/admin/streams/index.html.haml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/views/admin/streams/edit.html.haml b/app/views/admin/streams/edit.html.haml index 8d910fe..8c250e2 100644 --- a/app/views/admin/streams/edit.html.haml +++ b/app/views/admin/streams/edit.html.haml @@ -1,3 +1,3 @@ - title "Editing #{@stream.title}" -= form_for @stream, url: admin_stream_url(@stream), html: { id: "entry-form" } do |f| += form_for @stream, url: admin_stream_url(@stream.id), html: { id: "entry-form" } do |f| = render partial: "form", locals: { f: f } diff --git a/app/views/admin/streams/index.html.haml b/app/views/admin/streams/index.html.haml index 6903fd1..a2a25d7 100644 --- a/app/views/admin/streams/index.html.haml +++ b/app/views/admin/streams/index.html.haml @@ -10,5 +10,5 @@ %td= stream.created_at.strftime("%B %d, %Y, %l:%M%P") %td %ul.admin-actions - %li= link_to "Edit", edit_admin_stream_url(stream) - %li= link_to "Add Update", new_admin_stream_update_url(stream) + %li= link_to "Edit", edit_admin_stream_url(stream.id) + %li= link_to "Add Update", new_admin_stream_update_url(stream.id) -- cgit 1.4.1