summaryrefslogtreecommitdiff
path: root/app/views/pages/new.html.erb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-30 13:43:26 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-30 13:43:26 +0200
commitad410b963369ec6b55526401c3873e6076b18b5f (patch)
treebbf3bef14e0646c7db212274dc3e656771881659 /app/views/pages/new.html.erb
parent5ef13e5aa5ea565b07441616ab1eece565aa2f53 (diff)
Retire the unroutable scaffold views
Nine generator leftovers for actions that either do not exist or never render HTML. menu_items/show goes with its route and its action, since deleting the template alone would turn a dead page into a missing-template error; pages_controller has only #preview, so its four CRUD views were unreachable by any route; and nodes#update redirects on every path.
Diffstat (limited to 'app/views/pages/new.html.erb')
-rw-r--r--app/views/pages/new.html.erb31
1 files changed, 0 insertions, 31 deletions
diff --git a/app/views/pages/new.html.erb b/app/views/pages/new.html.erb
deleted file mode 100644
index 2758faf5..00000000
--- a/app/views/pages/new.html.erb
+++ /dev/null
@@ -1,31 +0,0 @@
1<h1>New page</h1>
2
3<%= form_for(@page) do |f| %>
4 <%= form_error_messages(f) %>
5
6 <p>
7 <%= f.label :node_id %><br />
8 <%= f.text_field :node_id %>
9 </p>
10 <p>
11 <%= f.label :title %><br />
12 <%= f.text_field :title %>
13 </p>
14 <p>
15 <%= f.label :abstract %><br />
16 <%= f.text_area :abstract %>
17 </p>
18 <p>
19 <%= f.label :body %><br />
20 <%= f.text_area :body %>
21 </p>
22 <p>
23 <%= f.label :revision %><br />
24 <%= f.text_field :revision %>
25 </p>
26 <p>
27 <%= f.submit "Create" %>
28 </p>
29<% end %>
30
31<%= link_to 'Back', pages_path %>