Answers for "how to create a sign_i function that doesn't require a password in rails"

0

how to create a sign_i function that doesn't require a password in rails

def register
  @user = User.new
end

def create
  @user = User.new(user_params)

  if @user.save
    redirect_to root_path, notice: 'Welcome! We have sent you the link to login to our app'
  else
    render :register
  end
end

private

def user_params
  params.require(:user).permit(:fullname, :username, :email)
end
Posted by: Guest on March-26-2021

Code answers related to "how to create a sign_i function that doesn't require a password in rails"

Browse Popular Code Answers by Language