-
Notifications
You must be signed in to change notification settings - Fork 161
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
Use with Active Admin #7
Comments
Hi Torey, can you elaborate on the Active Admin ? Keen to figure out why this isn't working for you. (Can you also shoot me a copy of your rake routes output?) |
Yeah, I seem to be getting this as well. |
Did anything come of this issue ? |
I'm sorry I've kept the fix/workaround I had above. But haven't had time to research a proper fix. |
It appears that in this instance the devise routes are underneath active_admin/devise instead of just devise. Unfortunately, the above fix looks like the quickest patch at this point in time, until I can at least figure out how dynamically add the routes for devise_google_authenticator under active_admin/devise instead of just devise/ |
I am trying to do the same but I had no luck. Where I should put this fix? get 'active_admin/admin/checkga', to: 'active_admin/devise/checkga#show' but I get a 「Unable to autoload constant ActiveAdmin::Devise::CheckgaController, expected /Users/interbooks04/Documents/Aptana Studio 3 Workspace/ib-global/app/controllers/active_admin/devise/checkga_controller.rb to define it」error. |
ok I fixed in an alternative way. |
Hi All, I've made a minor change to the checkga path where it more dynamically determines where to redirect the user after they've authenticated, prior to the Google Token being checked. I've tested this with Rails 4.0.4 and Active Admin 1.0.0.pre. To make this work I performed the following steps
added root 'admin/dashboard#index' into routes.rb # need a root route rails s # starts the rails server Logged into the app Voila .. I hope this works for you guys! |
Closing for the moment, but, feel free to open again if it remains broken. |
Hi , I have installed gem 'devise_google_authenticator' in rails 5.2.1 but i got error i.e,Gem Load Error is: undefined method `to_prepare' for ActionDispatch::Callbacks:Class |
I'm getting a route not found error when using Active Admin. I was able to get it to work by changing this line. But not sure the best way to fix it.
The text was updated successfully, but these errors were encountered: