You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An upgrade guide is available here and is quite simple but a lot a views require changes as the data attributes needs to be changed from data-method="delete" to data-turbo-method="delete".
The above example would be : <%= link_to '<i class="fas fa-right-to-bracket" aria-hidden="true"> </i> '.html_safe + _('Logout'), destroy_user_session_path, data: {turbo_method: :delete}, class: 'dropdown-item' %>
The text was updated successfully, but these errors were encountered:
Rails UJS is deprecated and will be removed in Rails 7.2 : https://edgeguides.rubyonrails.org/7_2_release_notes.html#action-view-removals
It is used in a lot of places, mainly to create links & buttons that uses POST or DELETE http methods.
Here's an example with the sign out link :
roadmap/app/views/layouts/_signin_signout.html.erb
Line 39 in fc047ac
An upgrade guide is available here and is quite simple but a lot a views require changes as the data attributes needs to be changed from
data-method="delete"
todata-turbo-method="delete"
.The above example would be :
<%= link_to '<i class="fas fa-right-to-bracket" aria-hidden="true"> </i> '.html_safe + _('Logout'), destroy_user_session_path, data: {turbo_method: :delete}, class: 'dropdown-item' %>
The text was updated successfully, but these errors were encountered: