I did generate the devise_google_authenticator views with
rails g devise_google_authenticator:views users
which resulted in generating the views under the users folder
views/users/checkga & views/users/displayqr
My issue is when i login to the app it asks for the code views/users/checkga, how can i have the views/users/checkga as its own layout without rendering the entire app into the view. just have it as its own separate layout.
Things that i have tried
create a controller under the users folder checkga_controller.rb with layout "ga_check" under the views/layouts/ga_check.html.erb though it doesnt work. i also tried the same layout "ga_check" in the checkga_controller.rb in the devise_google_authenticator gem, that didnt work either. any ideas
I did generate the devise_google_authenticator views with
rails g devise_google_authenticator:views users
which resulted in generating the views under the users folderviews/users/checkga
&views/users/displayqr
My issue is when i login to the app it asks for the code
views/users/checkga
, how can i have theviews/users/checkga
as its own layout without rendering the entire app into the view. just have it as its own separate layout.Things that i have tried
create a controller under the users folder checkga_controller.rb with
layout "ga_check"
under theviews/layouts/ga_check.html.erb
though it doesnt work. i also tried the samelayout "ga_check"
in the checkga_controller.rb in the devise_google_authenticator gem, that didnt work either. any ideasThank You.