From 3ab55f018792b4b00c3c389867a275bccee7b9dd Mon Sep 17 00:00:00 2001 From: Aaron Namba Date: Tue, 11 Jan 2022 10:15:01 +0900 Subject: [PATCH] fix for "Please use symbols for polymorphic route arguments." --- app/views/manage/cms_snippets/edit.html.erb | 2 +- lib/imagine_cms/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/manage/cms_snippets/edit.html.erb b/app/views/manage/cms_snippets/edit.html.erb index 2a29894..597d849 100644 --- a/app/views/manage/cms_snippets/edit.html.erb +++ b/app/views/manage/cms_snippets/edit.html.erb @@ -2,7 +2,7 @@

<%= params[:action].titlecase %> Snippet

-<%= form_with(model: ['manage', @cms_snippet], local: true) do |f| %> +<%= form_with(model: [:manage, @cms_snippet], local: true) do |f| %> <%= f.text_field :name, placeholder: 'Snippet Name', :size => '50' %>
<%= f.text_area :content, class: 'codemirror-html autocomplete-off' %> diff --git a/lib/imagine_cms/version.rb b/lib/imagine_cms/version.rb index d121a93..80dc552 100644 --- a/lib/imagine_cms/version.rb +++ b/lib/imagine_cms/version.rb @@ -1,3 +1,3 @@ module ImagineCms - VERSION = "5.2.5" + VERSION = "5.2.6" end