diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-25 04:35:21 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-25 04:35:21 +0200 |
| commit | 5f8cc4fa269dadc895d99eec9ef3a82b17c5890a (patch) | |
| tree | 048ffe4ef9e6b147eddbe6472312b72267d268d9 /app/views/users/_user.html.erb | |
| parent | f7a5944a1f44ede9881d368a36eb9f7d82d6ab69 (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/users/_user.html.erb')
| -rw-r--r-- | app/views/users/_user.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb index 8117bcd..9987e31 100644 --- a/app/views/users/_user.html.erb +++ b/app/views/users/_user.html.erb | |||
| @@ -11,9 +11,9 @@ | |||
| 11 | "destroy", | 11 | "destroy", |
| 12 | user_path(user), | 12 | user_path(user), |
| 13 | :method => :delete, | 13 | :method => :delete, |
| 14 | :confirm => "Do you really want to delete user #{user.login}?" | 14 | :data => { :confirm => "Do you really want to delete user #{user.login}?" } |
| 15 | ) %> | 15 | ) %> |
| 16 | </td> | 16 | </td> |
| 17 | <% end %> | 17 | <% end %> |
| 18 | </tr> | 18 | </tr> |
| 19 | <% end %> \ No newline at end of file | 19 | <% end %> |
