summaryrefslogtreecommitdiff
path: root/app/views/occurrences
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-25 04:35:21 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-25 04:35:21 +0200
commit5f8cc4fa269dadc895d99eec9ef3a82b17c5890a (patch)
tree048ffe4ef9e6b147eddbe6472312b72267d268d9 /app/views/occurrences
parentf7a5944a1f44ede9881d368a36eb9f7d82d6ab69 (diff)
Rails 4.2 view fixes
- Replace :confirm => with :data => { :confirm => } in all link_to calls - Fix link_to_path helper: use content_path named route instead of hash-style routing - Fix admin/_menu.html.erb: use named routes for logout and admin index - Fix admin layout: load jquery/jquery_ujs before jquery-ui, remove duplicate jQuery 1.3.2 - Add csrf_meta_tags to admin layout
Diffstat (limited to 'app/views/occurrences')
-rw-r--r--app/views/occurrences/index.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/occurrences/index.html.erb b/app/views/occurrences/index.html.erb
index 06dbf07..7b8ffb8 100644
--- a/app/views/occurrences/index.html.erb
+++ b/app/views/occurrences/index.html.erb
@@ -18,11 +18,11 @@
18 <td><%=h occurrence.event_id %></td> 18 <td><%=h occurrence.event_id %></td>
19 <td><%= link_to 'Show', occurrence %></td> 19 <td><%= link_to 'Show', occurrence %></td>
20 <td><%= link_to 'Edit', edit_occurrence_path(occurrence) %></td> 20 <td><%= link_to 'Edit', edit_occurrence_path(occurrence) %></td>
21 <td><%= link_to 'Destroy', occurrence, :confirm => 'Are you sure?', :method => :delete %></td> 21 <td><%= link_to 'Destroy', occurrence, :data => { :confirm => 'Are you sure?' }, :method => :delete %></td>
22 </tr> 22 </tr>
23<% end %> 23<% end %>
24</table> 24</table>
25 25
26<br /> 26<br />
27 27
28<%= link_to 'New occurrence', new_occurrence_path %> \ No newline at end of file 28<%= link_to 'New occurrence', new_occurrence_path %>