summaryrefslogtreecommitdiff
path: root/app/views/nodes/show.html.erb
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-02-08 14:06:03 +0100
committerhukl <hukl@eight.local>2009-02-08 14:06:03 +0100
commit56e1df622f8cb6fb558b83fc4d2836ad0aece7d7 (patch)
tree7cef4583f4b025847f4e0ce506fff8fc082ef30c /app/views/nodes/show.html.erb
parent1a6516c7c8103fb63e7e11134e0fd8ff9f26d6fe (diff)
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.
Diffstat (limited to 'app/views/nodes/show.html.erb')
-rw-r--r--app/views/nodes/show.html.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb
new file mode 100644
index 0000000..bbf11c0
--- /dev/null
+++ b/app/views/nodes/show.html.erb
@@ -0,0 +1,10 @@
1<h1>Nodes</h1>
2
3<table>
4 <% @nodes.each do |node| %>
5 <tr>
6 <td><%= link_to node.unique_name, node_path(node) %></td>
7 <td><%= link_to 'Edit', edit_node_path(node) %></td>
8 </tr>
9 <% end %>
10</table> \ No newline at end of file