From f953e2e158a6d702f96413607d8cb5c026e561a7 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 11 Oct 2023 13:30:32 -0400 Subject: Do it more I guess --- app/views/admin/blogs/_form.html.haml | 2 +- app/views/admin/blogs/drafts.html.haml | 4 ++-- app/views/admin/blogs/edit.html.haml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/views/admin/blogs/_form.html.haml b/app/views/admin/blogs/_form.html.haml index 80a1b00..021d1ed 100644 --- a/app/views/admin/blogs/_form.html.haml +++ b/app/views/admin/blogs/_form.html.haml @@ -20,7 +20,7 @@ - if f.object.published = link_to "View post", blog_url(f.object.slug_was), target: "entry-preview" - else - = link_to "Preview post", admin_blog_url(f.object), target: "entry-preview" + = link_to "Preview post", admin_blog_url(f.object.id), target: "entry-preview" .details-module .tags-field = f.label :tag_list, "Tags" diff --git a/app/views/admin/blogs/drafts.html.haml b/app/views/admin/blogs/drafts.html.haml index 7f6d19d..9deb395 100644 --- a/app/views/admin/blogs/drafts.html.haml +++ b/app/views/admin/blogs/drafts.html.haml @@ -10,5 +10,5 @@ %td= blog.updated_at.strftime("%B %d, %Y, %l:%M%P") %td %ul.admin-actions - %li= link_to "Preview", admin_blog_url(blog) - %li= link_to "Edit", edit_admin_blog_url(blog) + %li= link_to "Preview", admin_blog_url(blog.id) + %li= link_to "Edit", edit_admin_blog_url(blog.id) diff --git a/app/views/admin/blogs/edit.html.haml b/app/views/admin/blogs/edit.html.haml index beb7b88..deb9714 100644 --- a/app/views/admin/blogs/edit.html.haml +++ b/app/views/admin/blogs/edit.html.haml @@ -1,3 +1,3 @@ - title "Editing #{@blog.title}" -= form_for @blog, url: admin_blog_url(@blog), html: { id: "entry-form" } do |f| += form_for @blog, url: admin_blog_url(@blog.id), html: { id: "entry-form" } do |f| = render partial: "form", locals: { f: f } -- cgit 1.4.1