diff options
| author | hukl <contact@smyck.org> | 2009-02-26 14:16:57 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-26 14:16:57 +0100 |
| commit | e04151525fa6963f2e55444a156fd47f24423e51 (patch) | |
| tree | 5e1fb5138837cc7f80649bcfaff87bd1a06f746c /app/views | |
| parent | 3190145bf0ebca1bdeff036c60ce6280c9d24c70 (diff) | |
the locale stuff as well as the cloning should work now entirely as expected although the cloning itself isn't really a beauty
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ | |||
| 12 | <% form_for(@node) do |f| %> | 12 | <% form_for(@node) do |f| %> |
| 13 | <%= f.error_messages %> | 13 | <%= f.error_messages %> |
| 14 | 14 | ||
| 15 | <% draft = @node.find_or_create_draft( current_user ) %> | 15 | <% fields_for @draft do |d| %> |
| 16 | <% fields_for draft do |d| %> | ||
| 17 | <p></p> | 16 | <p></p> |
| 18 | <p> | 17 | <p> |
| 19 | <%= d.label :title %><br /> | 18 | <%= d.label :title %><br /> |
| @@ -21,7 +20,7 @@ | |||
| 21 | </p> | 20 | </p> |
| 22 | <p> | 21 | <p> |
| 23 | <%= d.label 'Tags, comma sperated' %><br /> | 22 | <%= d.label 'Tags, comma sperated' %><br /> |
| 24 | <%= text_field_tag :tag_list, draft.tag_list.join(", ") %> | 23 | <%= text_field_tag :tag_list, @draft.tag_list.join(", ") %> |
| 25 | </p> | 24 | </p> |
| 26 | <p> | 25 | <p> |
| 27 | <%= d.label :abstract %><br /> | 26 | <%= d.label :abstract %><br /> |
