Sha256: 1afc37d8e33651ac8d89b17247d1fe227c210f383dfe35ad98dcca4fa7968736
Contents?: true
Size: 550 Bytes
Versions: 4
Compression:
Stored size: 550 Bytes
Contents
module Onboarding class UsersController < OnboardingController helper_method :user def index;end; def create @user = User.find_or_initialize_by(email: user_params[:email]) @user.update(user_params) if user.errors.blank? save_configurations! redirect_to :root else render 'index' end end protected def user_params params.require(:user).permit(:email, :password, :password_confirmation) end def user @user ||= User.new end end end
Version data entries
4 entries across 4 versions & 1 rubygems