From e04151525fa6963f2e55444a156fd47f24423e51 Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 26 Feb 2009 14:16:57 +0100 Subject: the locale stuff as well as the cloning should work now entirely as expected although the cloning itself isn't really a beauty --- app/views/nodes/edit.html.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app/views') diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index e2c0965..64d4756 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb @@ -12,8 +12,7 @@ <% form_for(@node) do |f| %> <%= f.error_messages %> - <% draft = @node.find_or_create_draft( current_user ) %> - <% fields_for draft do |d| %> + <% fields_for @draft do |d| %>

<%= d.label :title %>
@@ -21,7 +20,7 @@

<%= d.label 'Tags, comma sperated' %>
- <%= text_field_tag :tag_list, draft.tag_list.join(", ") %> + <%= text_field_tag :tag_list, @draft.tag_list.join(", ") %>

<%= d.label :abstract %>
-- cgit v1.3