Skip to content
New issue

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

format: false does not work #5689

Open
collimarco opened this issue May 17, 2024 · 1 comment
Open

format: false does not work #5689

collimarco opened this issue May 17, 2024 · 1 comment

Comments

@collimarco
Copy link

Environment

  • Ruby 3.3.1
  • Rails 7.1.3.2
  • Devise 4.9.3

Current behavior

If you want to disable the format in Devise routes, this should work (based on comments in source code):

devise_for :users, format: false

However it seems that it doesn't have any effects.

Expected behavior

It should remove the format part from routes.

Current workaround

The only workaround that I found is currently this (which works properly):

scope format: false do
  devise_for :users
end
@VadimLeader
Copy link

I can confirm the same behavior.
@collimarco Thanks for the workaround 🤝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants