From 49b11f2864f75bcfb8d0d01439939ed68aa90b8f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 2 Jul 2018 18:03:37 -0400 Subject: Collapsed Entry -> Blog single-table inheritance to Blog --- app/views/blogs/show.html.haml | 2 ++ app/views/entries/show.html.haml | 2 -- app/views/records/index.html.haml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 app/views/blogs/show.html.haml delete mode 100644 app/views/entries/show.html.haml (limited to 'app/views') diff --git a/app/views/blogs/show.html.haml b/app/views/blogs/show.html.haml new file mode 100644 index 0000000..51d4aa0 --- /dev/null +++ b/app/views/blogs/show.html.haml @@ -0,0 +1,2 @@ +.breadcrumb= link_to "← Back to home page", root_path += render @blog diff --git a/app/views/entries/show.html.haml b/app/views/entries/show.html.haml deleted file mode 100644 index 3a9337c..0000000 --- a/app/views/entries/show.html.haml +++ /dev/null @@ -1,2 +0,0 @@ -.breadcrumb= link_to "← Back to home page", root_path -= render @entry diff --git a/app/views/records/index.html.haml b/app/views/records/index.html.haml index 3850d72..200321e 100644 --- a/app/views/records/index.html.haml +++ b/app/views/records/index.html.haml @@ -4,4 +4,4 @@ %span.description= link_to record.description, record.recordable.path %ul.tags %li.record-date= record.created_at.strftime("%m.%d.%y") - %li.entry-type{ class: "entry-type-#{record.recordable.type.downcase}" }= record.recordable.type + %li.entry-type{ class: "entry-type-#{record.recordable_type.downcase}" }= record.recordable_type -- cgit 1.4.1