Because anyone can sign up and then log in,... and because a user isn't identified for roles until after log in, doesn't it make sense to skip authorization_check for Devise?
Going on that premise, i inherit from the Devise registration controller with this registrations_controller and placed it in the controller directory.
class Users::RegistrationsController < Devise::RegistrationsController
skip_authorization_check
end
change to the routes file:
devise_for :users, :controllers => { :registrations => "registrations" }
I'm missing something though:
This action failed the check_authorization because it does not authorize_resource. Add skip_authorization_check to bypass this check.
Thanks for your help.