active_admin_role icon indicating copy to clipboard operation
active_admin_role copied to clipboard

undefined method `delete' for :ok:Symbol

Open quietwar opened this issue 5 years ago • 6 comments

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

quietwar avatar Nov 02 '18 21:11 quietwar

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

hiddenfile avatar May 03 '19 00:05 hiddenfile

@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 avatar May 05 '19 09:05 yhirano55

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

yhirano55 avatar May 06 '19 17:05 yhirano55

@yhirano55 already working on it !

luilver avatar May 06 '19 17:05 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.

luilver avatar May 06 '19 19:05 luilver

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

Ammypka avatar Apr 08 '22 20:04 Ammypka