Replies: 4 comments
-
|
I have observed the same behavior |
Beta Was this translation helpful? Give feedback.
-
|
I've experienced it as well |
Beta Was this translation helpful? Give feedback.
-
|
I've been seeing this happen many times in development. I believe it happens when there's a syntax error in the code (for example an extra
@javierjulio I believe this is a bug and should be an issue rather than a discussion. |
Beta Was this translation helpful? Give feedback.
-
|
Having the same issue here too |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In new Rails 8 app, ActiveAdmin 4 (beta 15 or
master), after raising an error such asNoMethodErrorin some AA resource class, triggerssuperclass mismatch for class DashboardController. The only mitigation is to restart the server.The error needs to be raised at the "root" of the class/resource, such as:
Here are the steps to repro:
After this, open
app/admin/posts.rband changepermit_params :titletoaaapermit_param :title.You get
undefined method 'aaapermit_params' for an instance of ActiveAdmin::ResourceDSLas expected.Now change
aaapermit_paramsback topermit_paramsand reload the page.Expected behavior
The page should reload.
Actual behavior
superclass mismatch for class DashboardControllerA quick patch that I discovered is to add this code to the gem:
Beta Was this translation helpful? Give feedback.
All reactions