Sha256: ad35a80168cbb13df9017aeade1516a00813bc7a98abcef64e6870c5809cd5c8
Contents?: true
Size: 444 Bytes
Versions: 16
Compression:
Stored size: 444 Bytes
Contents
class UsersController < ApplicationController def new @user = User.new end def create @user = User.new(user_params) if @user.save redirect_to root_url, notice: "Signed up!" else render "new" end end private # Never trust parameters from the scary internet, only allow the white list through. def user_params params.require(:user).permit(:email, :password, :password_confirmation) end end
Version data entries
16 entries across 8 versions & 1 rubygems