We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 7 did not support ujs anymore, Therefore link_to did not working with :put, :delete, :post method.
link_to
:put, :delete, :post
There is many issue such as logout of link_to using :delete method on Device gem, so on.
logout
:delete
Device gem
Many answer on stackoverflow that shown use link_to data: {"turbo-method": :post} instead of link_to method: :post
link_to data: {"turbo-method": :post}
link_to method: :post
Below of code is git log for unsovled link using link_to with :put method
:put
- <%= link_to t('undo'), simple_discussion.unsolved_forum_thread_forum_post_path(@forum_thread, forum_post), method: :put %> + <%= link_to t('undo'), simple_discussion.unsolved_forum_thread_forum_post_path(@forum_thread, forum_post), data: {"turbo-method": :put} %>
Could I do PR for solving this issue on rails 7 without ujs? Or Do you have some solution?
ujs
The text was updated successfully, but these errors were encountered:
These should be changed to button_to so they don't require JavaScript. If you want to make a pull request, please do!
button_to
Sorry, something went wrong.
but button_to was not pretty on view. link_to use awesome icon.
No branches or pull requests
Rails 7 did not support ujs anymore, Therefore
link_to
did not working with:put, :delete, :post
method.There is many issue such as
logout
oflink_to
using:delete
method onDevice gem
, so on.Many answer on stackoverflow that shown use
link_to data: {"turbo-method": :post}
instead oflink_to method: :post
Below of code is git log for unsovled link using
link_to
with:put
methodCould I do PR for solving this issue on rails 7 without
ujs
?Or Do you have some solution?
The text was updated successfully, but these errors were encountered: