diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
| commit | 9a19a0494ef51cdac9a78e24d517ca48ba44c453 (patch) | |
| tree | 8eaae12d8047a40e29d3ea7ff3116b5c869e04bd /app/views/pages | |
| parent | 85a01e35274b8d4d4165a7b26bd7986e211246bb (diff) | |
| parent | 1853082fcd8c067390c246f9daa01a9b47387497 (diff) | |
Migration from Rails 2.3.5 to Rails 8.1 successful.
Merging dev branch.
Diffstat (limited to 'app/views/pages')
| -rw-r--r-- | app/views/pages/edit.html.erb | 4 | ||||
| -rw-r--r-- | app/views/pages/index.html.erb | 4 | ||||
| -rw-r--r-- | app/views/pages/new.html.erb | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/app/views/pages/edit.html.erb b/app/views/pages/edit.html.erb index 749d7e3..8b1242c 100644 --- a/app/views/pages/edit.html.erb +++ b/app/views/pages/edit.html.erb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <h1>Editing page</h1> | 1 | <h1>Editing page</h1> |
| 2 | 2 | ||
| 3 | <% form_for(@page) do |f| %> | 3 | <%= form_for(@page) do |f| %> |
| 4 | <%= f.error_messages %> | 4 | <%= form_error_messages(f) %> |
| 5 | 5 | ||
| 6 | <p> | 6 | <p> |
| 7 | <%= f.label :title %><br /> | 7 | <%= f.label :title %><br /> |
diff --git a/app/views/pages/index.html.erb b/app/views/pages/index.html.erb index 16539da..91e5359 100644 --- a/app/views/pages/index.html.erb +++ b/app/views/pages/index.html.erb | |||
| @@ -10,9 +10,9 @@ | |||
| 10 | <tr> | 10 | <tr> |
| 11 | <td><%=h page.node_id %></td> | 11 | <td><%=h page.node_id %></td> |
| 12 | <td><%=h page.title %></td> | 12 | <td><%=h page.title %></td> |
| 13 | <td><%= link_to 'Show', link_to_path(page.node.unique_path) %></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> | 14 | <td><%= link_to 'Edit', edit_page_path(page) %></td> |
| 15 | <td><%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %></td> | 15 | <td><%= button_to 'Destroy', page, method: :delete, form: { data: { confirm: 'Are you sure?' } } %></td> |
| 16 | </tr> | 16 | </tr> |
| 17 | <% end %> | 17 | <% end %> |
| 18 | </table> | 18 | </table> |
diff --git a/app/views/pages/new.html.erb b/app/views/pages/new.html.erb index b27dc62..2758faf 100644 --- a/app/views/pages/new.html.erb +++ b/app/views/pages/new.html.erb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <h1>New page</h1> | 1 | <h1>New page</h1> |
| 2 | 2 | ||
| 3 | <% form_for(@page) do |f| %> | 3 | <%= form_for(@page) do |f| %> |
| 4 | <%= f.error_messages %> | 4 | <%= form_error_messages(f) %> |
| 5 | 5 | ||
| 6 | <p> | 6 | <p> |
| 7 | <%= f.label :node_id %><br /> | 7 | <%= f.label :node_id %><br /> |
