You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our app we have an Account model with two controllers: AccountsController and ExtendTrialsController. Both of these controllers use the account model. The ExtendTrialsController manages extending the account trial period:
class Admin::ExtendTrialsController < Admin::ApplicationController
self.model_class = Account
def update
# extend the trial
end
private
def resource
@resource ||= Account.find_by(token: params[:id])
end
end
The problem is the main menu navigation thinks this controller is the main controller for managing accounts and links instead of the AccountsController.
The text was updated successfully, but these errors were encountered:
In our app we have an
Account
model with two controllers:AccountsController
andExtendTrialsController
. Both of these controllers use the account model. TheExtendTrialsController
manages extending the account trial period:The problem is the main menu navigation thinks this controller is the main controller for managing accounts and links instead of the
AccountsController
.The text was updated successfully, but these errors were encountered: