app/controllers/users_controller.rb
def create
    @user = User.new(user_params)
    if @user.save
       @user.send_activation_email
       flash[:info] = "Please check your email to activate your account."
       redirect_to root_url
    else
       render 'new'
    end
  end
#fills in the necessary attributes in the User DB for that user
#filters out any inappropriate usernames
fills in the necessary attributes in the User DB for that user
filters out any inappropriate usernames
fills in the necessary attributes in the User DB for that user filters out any inappropriate usernames
def create
    @user = User.new(user_params)
    if @user.save
       @user.send_activation_email
       flash[:info] = "Please check your email to activate your account."
       redirect_to root_url
    else
       render 'new'
    end
  end
def create @user = User . new ( user_params ) if @user . save @user . send_activation_email flash [ :info ] = "Please check your email to activate your account." redirect_to root_url else render 'new' end end
fills in the necessary attributes in the User DB for that user
filters out any inappropriate usernames
fills in the necessary attributes in the User DB for that user filters out any inappropriate usernames