diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index 4693569..1c6cc3a 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | <% end %> | 5 | <% end %> |
| 6 | 6 | ||
| 7 | <div id="page_editor"> | 7 | <div id="page_editor"> |
| 8 | <%= form_for(@node) do |f| %> | 8 | <%= form_for(@node, html: { data: { autosave_url: autosave_node_path(@node), show_url: node_path(@node) } }) do |f| %> |
| 9 | <% if @node.errors.any? %> | 9 | <% if @node.errors.any? %> |
| 10 | <div class="error_messages"> | 10 | <div class="error_messages"> |
| 11 | <ul><% @node.errors.full_messages.each do |msg| %><li><%= msg %></li><% end %></ul> | 11 | <ul><% @node.errors.full_messages.each do |msg| %><li><%= msg %></li><% end %></ul> |
