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

undefined method `delete' for 🆗Symbol #18

Open
quietwar opened this issue Nov 2, 2018 · 6 comments
Open

undefined method `delete' for 🆗Symbol #18

quietwar opened this issue Nov 2, 2018 · 6 comments

Comments

@quietwar
Copy link

quietwar commented Nov 2, 2018

Steps to reproduce

screen shot 2018-11-02 at 2 01 34 pm
screen shot 2018-11-02 at 2 01 54 pm
Hi I am gettin the above error all of a sudden. My app was working fine. I have included the permisions code. The rest of the app is working. I could never edit my permissions however.

thank you

  • Explain steps to reproduce.
  • Paste your error logs.
  • Tell us your repository of app, if you ok.

ActiveAdmin version:2.0.0 alpha

ActiveAdminRole version:0.2.1

**Rails version 5.21

**Ruby version 2.5.3

@hiddenfile
Copy link

status_tag (record.can? ? 'yes' : 'no'), label: record.state
https://activeadmin.info/12-arbre-components.html#status-tag

@yhirano55
Copy link
Contributor

@hiddenfile Thanks you for opening this issue and explain reproduce process. I appreciate to your work. Currently I don't use ActiveAdmin. If you could do, please open a pull request to fix this bug.

@yhirano55
Copy link
Contributor

@luilver Please check this bug and fix it, if you could 🙏

@luilver
Copy link

luilver commented May 6, 2019

@yhirano55 already working on it !

@luilver
Copy link

luilver commented May 6, 2019

@quietwar I can reproduce this issue with the information you provided. Could you please update your bundle and check if this still happen ?

@yhirano55 I have bundled using active_admin_role_sample with Ruby 5.2.3, Rails 5.2.1, active_admin_role 0.2.1, activeadmin 2.0.0 (not alpha but release e80a629 from April 25, 2019) and it just worked fine.

@Ammypka
Copy link

Ammypka commented Apr 8, 2022

There was a similar problem, a small change in the code helped:

From:
status_tag(record.state, record.can? ? :ok : nil)

To:
status_tag(record.can? ? :yes : :grey, label: record.state)

P.S.
:yes - used for change color
:grey - used as cork

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

5 participants