From 5f8cc4fa269dadc895d99eec9ef3a82b17c5890a Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 25 Jun 2026 04:35:21 +0200 Subject: Rails 4.2 view fixes - Replace :confirm => with :data => { :confirm => } in all link_to calls - Fix link_to_path helper: use content_path named route instead of hash-style routing - Fix admin/_menu.html.erb: use named routes for logout and admin index - Fix admin layout: load jquery/jquery_ujs before jquery-ui, remove duplicate jQuery 1.3.2 - Add csrf_meta_tags to admin layout --- app/views/nodes/edit.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/nodes') diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index d40d4e7..64884cf 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb @@ -2,7 +2,7 @@ <%= link_to 'metadata', '#', :id => 'button', :class => "unselected" %> <%= link_to 'Show', @node %> <%= link_to 'Preview', preview_page_path(@draft) %> - <%= link_to 'Publish', publish_node_path, :method => :put, :confirm => "Publish this draft?" %> + <%= link_to 'Publish', publish_node_path, :method => :put, :data => { :confirm => "Publish this draft?" } %> <%= link_to 'Revisions', node_revisions_path(@node) %> <% end %> -- cgit v1.3