From 634dd0776997b868daffafdf54d2495684e711ac Mon Sep 17 00:00:00 2001 From: Seth Call Date: Sat, 9 May 2020 12:04:44 -0500 Subject: [PATCH] fix message route --- admin/app/views/admin/generic_states/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/app/views/admin/generic_states/_form.html.erb b/admin/app/views/admin/generic_states/_form.html.erb index 9778f56dc..7316987e0 100644 --- a/admin/app/views/admin/generic_states/_form.html.erb +++ b/admin/app/views/admin/generic_states/_form.html.erb @@ -1,4 +1,4 @@ -<%= semantic_form_for([:admin, resource], :url => resource.new_record? ? admin_generic_states_path : "/admin/generic_states/#{resource.id}") do |f| %> +<%= semantic_form_for([:admin, resource], :url => resource.new_record? ? admin_generic_states_path : "#{ENV['RAILS_RELATIVE_URL_ROOT']}/admin/generic_states/#{resource.id}") do |f| %> <%= f.semantic_errors *f.object.errors.keys %> <%= f.inputs do %> <%= f.input(:top_message, :input_html => {:maxlength => 10000, :rows=>10, :class => 'autogrow'}) %>