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/index.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/index.html.erb')
| -rw-r--r-- | app/views/pages/index.html.erb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/app/views/pages/index.html.erb b/app/views/pages/index.html.erb deleted file mode 100644 index da67871c..00000000 --- a/app/views/pages/index.html.erb +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | <h1>Pages</h1> | ||
| 2 | |||
| 3 | <table> | ||
| 4 | <tr> | ||
| 5 | <th>Node</th> | ||
| 6 | <th>Title</th> | ||
| 7 | </tr> | ||
| 8 | |||
| 9 | <% for page in @pages %> | ||
| 10 | <tr> | ||
| 11 | <td><%=h page.node_id %></td> | ||
| 12 | <td><%=h page.title %></td> | ||
| 13 | <td><%= link_to 'Show', content_path(:page_path => page.node.unique_path) %></td> | ||
| 14 | <td><%= link_to 'Edit', edit_page_path(page) %></td> | ||
| 15 | <td><%= button_to page, method: :delete, form: { data: { confirm: 'Are you sure?' }, class: 'button_to destructive' } do %> | ||
| 16 | <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy | ||
| 17 | <% end %></td> | ||
| 18 | </tr> | ||
| 19 | <% end %> | ||
| 20 | </table> | ||
| 21 | |||
| 22 | <br /> | ||
| 23 | |||
| 24 | <%= link_to 'New page', new_page_path %> | ||
