google_visualr icon indicating copy to clipboard operation
google_visualr copied to clipboard

google_visualr conflict with ActiveAdmin/devise?

Open dhock194 opened this issue 7 years ago • 2 comments

I have used google_visualr for one app -- works great. I then built another, leveraging ActiveAdmin to manage the backend, which uses Devise (https://github.com/plataformatec/devise) for authentication. Everything working for ActiceAdmin/Devise, but as I just add back the google_visualr gem, and restart puma for test, I get the following error. Looks like possibly Devise and google_visualr have conflicting helper methods?

google_visualr/app/helpers/view_helper.rb:7:in block in <module:ViewHelper>': undefined method helper_method' for ActionController::API:Class (NoMethodError)

Has anyone run into this, resolution or workaround for this?

dhock194 avatar Jul 02 '17 17:07 dhock194

Sometime I see similar error when I run rails s . But I found that after fixing some syntax error in my controller , it is working fine.

Shekharrajak avatar Jul 03 '17 06:07 Shekharrajak

I just did a test, creating a new rails app (-d mysql being the only modifier), added the ActiveAdmin gem, ran generate/install for aa, and a db:migrate -- basic but works fine. I then just add gem "google_visualr", "~> 2.5.1", and rails s no longer runs. No controllers have been created, other than by the AA install, so not sure where to look for a syntax error as you mentioned.

dhock194 avatar Jul 03 '17 14:07 dhock194