Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87228c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@scambra This appears to break any Rails 7 apps still using rails-ujs and remote: true on their invite form. /users/invitations/new.html template will get picked up rather than /users/invitations/new.js javascript template. In my use case I have a new.js template that does a bunch of JS updates and renders new.html into a modal, so both files exist side by side.
87228c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Devise doesn't use respond_with_navigational on create or update actions, they changed to use respond_with many years ago, so I think is the way to go. If you change the view in your app to use rails-ujs with remote: true, controller may need changes too.