diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 13:43:26 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 13:43:26 +0200 |
| commit | ad410b963369ec6b55526401c3873e6076b18b5f (patch) | |
| tree | bbf3bef14e0646c7db212274dc3e656771881659 /app/views/pages/edit.html.erb | |
| parent | 5ef13e5aa5ea565b07441616ab1eece565aa2f53 (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/edit.html.erb')
| -rw-r--r-- | app/views/pages/edit.html.erb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/app/views/pages/edit.html.erb b/app/views/pages/edit.html.erb deleted file mode 100644 index 8b1242cc..00000000 --- a/app/views/pages/edit.html.erb +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | <h1>Editing page</h1> | ||
| 2 | |||
| 3 | <%= form_for(@page) do |f| %> | ||
| 4 | <%= form_error_messages(f) %> | ||
| 5 | |||
| 6 | <p> | ||
| 7 | <%= f.label :title %><br /> | ||
| 8 | <%= f.text_field :title %> | ||
| 9 | </p> | ||
| 10 | <p> | ||
| 11 | <%= f.label :abstract %><br /> | ||
| 12 | <%= f.text_area :abstract %> | ||
| 13 | </p> | ||
| 14 | <p> | ||
| 15 | <%= f.label :body %><br /> | ||
| 16 | <%= f.text_area :body %> | ||
| 17 | </p> | ||
| 18 | <p> | ||
| 19 | <%= f.submit "Update" %> | ||
| 20 | </p> | ||
| 21 | <% end %> | ||
| 22 | |||
| 23 | <%= link_to 'Show', @page %> | | ||
| 24 | <%= link_to 'Back', pages_path %> | ||
