Created
October 7, 2014 12:54
-
-
Save thomasstr/e0a9d6240851eb4e6306 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegistrationsController < Devise::RegistrationsController | |
before_filter :configure_permitted_parameters, if: :devise_controller? | |
#def new | |
#flash[:error] = 'Registrations are not open yet, but please check back soon' | |
# nil | |
# render 'static_pages/_sign_up_not_allowed' | |
#end | |
private | |
def sign_up_params | |
params.require(resource_name).permit(:all_params_here) | |
end | |
def account_update_params | |
params.require(resource_name).permit(:all_params_here) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
devise_for :users, controllers: {registrations: 'registrations'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment