0
I use the Gems 'Devise' and 'cancancan' and also the 'rails_admin' in my project.
All of them for the administrative part of the site. This part is working perfectly.However in my main page of the site(root) should not need authentication to access it,but is being requesting the login to enter it.
I added before_action :authenticate_user!
in the application_controller as recommended by Devise,.
Anyway, I would like to know how to restrict and require login only on some pages of the site. And not the ones that users should access without the need for a login, such as ROOT
Thanks,had already solved. However his explanation was very good,better than the one I had received!
– Higor Lamonier