Skip to content

undefined method `delete' for 🆗Symbol #18

Open

Description

@quietwar

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

Activity

  1. hiddenfile commented on May 3, 2019

    @hiddenfile

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

  2. yhirano55 commented on May 5, 2019

    @yhirano55
    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.

  3. yhirano55 commented on May 6, 2019

    @yhirano55
    Contributor

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

  4. luilver commented on May 6, 2019

    @luilver

    @yhirano55 already working on it !

  5. luilver commented on May 6, 2019

    @luilver

    @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.

  6. Ammypka commented on Apr 8, 2022

    @Ammypka

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions