From 56e1df622f8cb6fb558b83fc4d2836ad0aece7d7 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 8 Feb 2009 14:06:03 +0100 Subject: added nodes controller and made it a resource. since the node is the proxy for the pages behind it, it makes sense to operate on nodes rather than on the pages themselves. --- app/views/nodes/edit.html.erb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 app/views/nodes/edit.html.erb (limited to 'app/views/nodes/edit.html.erb') diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb new file mode 100644 index 0000000..a5668e2 --- /dev/null +++ b/app/views/nodes/edit.html.erb @@ -0,0 +1,34 @@ +

Nodes#edit

+ +

Editing page

+ +<% form_for(@page) do |f| %> + <%= f.error_messages %> + +

+ <%= f.label :node_id %>
+ <%= f.text_field :node_id %> +

+

+ <%= f.label :title %>
+ <%= f.text_field :title %> +

+

+ <%= f.label :abstract %>
+ <%= f.text_area :abstract %> +

+

+ <%= f.label :body %>
+ <%= f.text_area :body %> +

+

+ <%= f.label :revision %>
+ <%= f.text_field :revision %> +

+

+ <%= f.submit "Update" %> +

+<% end %> + +<%= link_to 'Show', @page %> | +<%= link_to 'Back', pages_path %> -- cgit v1.3