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

actions are not working on rails 5 #2936

Closed
luizkowalski opened this issue Sep 27, 2017 · 6 comments
Closed

actions are not working on rails 5 #2936

luizkowalski opened this issue Sep 27, 2017 · 6 comments

Comments

@luizkowalski
Copy link

luizkowalski commented Sep 27, 2017

I'm upgrading to Rails 5.1 and I'm seeing this error:

RuntimeError:
  Action dashboard already exists. Please change its custom key.

I didn't touched rails_admin.rb in the migration. this is the relevant snippet:

config.actions do
    # root actions
    dashboard do
      statistics false
    end
    bulk_cancel_order
    tenant_invoice
    btr_tenant_invoice
    feature_toggle

    # collection actions
    index
    new do
      except [DeviceLog, Adyen::Order, AffiliateTransaction]
    end
    export
    history_index do

if I remove dashboard, then I get an error for the next action bulk_cancel_order and same goes for all actions

I'm using rails_admin 1.2.0

@mshytikov
Copy link
Contributor

Hi, run into the same issue.
Probably you just need to double check your configs etc. to make sure that all your classes/modules are resolved/loaded correctly.
In my case, it was failing with the error when I was running RSpec.
I found that I had an invalid file in config/initializers/.
After fixing a typo in my file issue was solved.

@mshibuya
Copy link
Member

mshibuya commented May 3, 2018

Please reopen on update.

@mshibuya mshibuya closed this as completed May 3, 2018
@asnad
Copy link

asnad commented Nov 13, 2018

facing same issue while running tests after upgrading to rails 5.2.1

@asnad
Copy link

asnad commented Nov 14, 2018

@luizkowalski can you please update how did you solve this?

@luizkowalski
Copy link
Author

I have no idea, it was more than a year ago and I already quit my previous company, sorry 😄

@asnad
Copy link

asnad commented Nov 14, 2018

Thanks I checked that there were two models which were not exist and I removed them from config and it worked.

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

4 participants