class UsersController < ApplicationController
  def index
    @users = User.all
  end

  def new
    @user = User.new
  end

  def create
    @user = User.new(params[:user])
    if @user.save
      finished("signup_title", reset: false)
      redirect_to root_url, notice: "Thank you for signing up."
    else
      render "new"
    end
  end
end
