codeplant / simple-navigation

A ruby gem for creating navigations (with multiple levels) for your Rails, Sinatra or Padrino applications. Render your navigation as html list, link list or breadcrumbs.
http://simple-navigation-demo.codeplant.ch/
MIT License
885 stars 136 forks source link

Url helpers not found, when eager_load is enabled #229

Open nlsrchtr opened 1 year ago

nlsrchtr commented 1 year ago

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 methodurl_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.

andi commented 1 year ago

Hi, would you have time to investigate?