From 4c3d622b3795836e1e7be4df303ee256a88b2812 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 21 Feb 2009 14:38:14 +0100 Subject: adding @node filter for publish action and setting a new member route for the nodes resource so that a put request on /nodes/id/publish will publish the current draft of a node --- app/views/nodes/edit.html.erb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/views') diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index 6848dfb..f457bc7 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb @@ -1,5 +1,7 @@

Nodes#edit

+<%= link_to 'Publish', publish_node_path, :method => :put %> +

Editing page

<%= I18n.locale %> -- cgit v1.3