I use gems 'devise' and 'cancancan' and also 'rails_admin' in my project.
All of them for the administrative part of the site. It is working perfectly this part. But in my main page of the site (root) it should not need authentication to access it, but it is being requested the login to enter it. / p>
I added before_action :authenticate_user!
to the application_controller as recommended by devise, I guess that might be why.
Anyway, I would like to know how restrictive and require login only on some pages of the site. And not in which users should access without the need of a login, such as ROOT