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

Version Path
authpro-1.1.0 test/rails/dummy/app/controllers/users_controller.rb
authpro-1.1.0 lib/generators/authpro/templates/users_controller.rb
authpro-1.0.1 test/rails/dummy/app/controllers/users_controller.rb
authpro-1.0.1 lib/generators/authpro/templates/users_controller.rb
authpro-1.0.0 lib/generators/authpro/templates/users_controller.rb
authpro-1.0.0 test/rails/dummy/app/controllers/users_controller.rb
authpro-0.9.3 lib/generators/authpro/templates/users_controller.rb
authpro-0.9.3 test/rails/dummy/app/controllers/users_controller.rb
authpro-0.9.2 lib/generators/authpro/templates/users_controller.rb
authpro-0.9.2 test/rails/dummy/app/controllers/users_controller.rb
authpro-0.9.1 lib/generators/authpro/templates/users_controller.rb
authpro-0.9.1 test/rails/dummy/app/controllers/users_controller.rb
authpro-0.9.0 test/rails/dummy/app/controllers/users_controller.rb
authpro-0.9.0 lib/generators/authpro/templates/users_controller.rb
authpro-0.1.0 lib/generators/authpro/templates/users_controller.rb
authpro-0.1.0 test/rails/dummy/app/controllers/users_controller.rb