Skip to content

Instantly share code, notes, and snippets.

@thomasstr
Created October 7, 2014 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasstr/e0a9d6240851eb4e6306 to your computer and use it in GitHub Desktop.
Save thomasstr/e0a9d6240851eb4e6306 to your computer and use it in GitHub Desktop.
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
devise_for :users, controllers: {registrations: 'registrations'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment