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

Nav menu breaks for custom routes #180

Open
ryanb opened this issue Mar 12, 2020 · 0 comments
Open

Nav menu breaks for custom routes #180

ryanb opened this issue Mar 12, 2020 · 0 comments

Comments

@ryanb
Copy link

ryanb commented Mar 12, 2020

I have a custom route to add a custom action like this:

resources :accounts do
  member do
    get :extend_trial
  end
end

This causes the Data menu to disappear when visiting the account pages because it loses reference to current_engine.

I tried specifying the engine_name in the controller:

self.engine_name = "wallaby_engine"

However this causes another error:

ActionController::UrlGenerationError - No route matches {:action=>"index", :controller=>"support_admin/accounts", :sort=>"id asc"}, missing required keys: [:resources]

Not certain how to proceed from here.

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