Skip to content

Rails 8 incompatability #216

@jasonperrone

Description

@jasonperrone
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions