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

google_visualr conflict with ActiveAdmin/devise? #114

Open
dhock194 opened this Issue Jul 2, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@dhock194

dhock194 commented Jul 2, 2017

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?

@Shekharrajak

This comment has been minimized.

Show comment
Hide comment
@Shekharrajak

Shekharrajak Jul 3, 2017

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 commented Jul 3, 2017

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.

@dhock194

This comment has been minimized.

Show comment
Hide comment
@dhock194

dhock194 Jul 3, 2017

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 commented Jul 3, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment