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

Rails 8 incompatability #216

Open
jasonperrone opened this issue Dec 20, 2024 · 0 comments
Open

Rails 8 incompatability #216

jasonperrone opened this issue Dec 20, 2024 · 0 comments

Comments

@jasonperrone
Copy link

ArgumentError: :only and :except must include only [:show, :create, :update, :destroy, :new, :edit], but also included [:resend_code]
    actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:1184:in `initialize'
    actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:1287:in `initialize'
    actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:1356:in `new'
    actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:1356:in `block in resource'
    actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:1836:in `with_scope_level'
    actionpack (8.0.1) lib/action_dispatch/routing/mapper.rb:1354:in `resource'
    two_factor_authentication (da1c6aa8e499) lib/two_factor_authentication/routes.rb:6:in `devise_two_factor_authentication'

Seems to be related to this Rails 8 change:
Raise an ArgumentError when invalid :only or :except options are passed into #resource and #resources

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

No branches or pull requests

1 participant