Skip to content

Url helpers not found, when eager_load is enabled #229

Open
@nlsrchtr

Description

@nlsrchtr

I was installing simple-navigation into a Rails 7 application and everything looks great, but when enabling eager loading (f.e. in tests) by using Rails.application.eager_load! I got undefined method url_for' for main:Object`.

I was looking through the wiki and FAQs, but couldn't find a hint on how to solve this.

I know, that Rails 7 is currently not supported and eager loading is also disabled in the test suite, but maybe someone has an idea on how to fix it.

Thanks a lot for any support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions