class UsersController < ApplicationController def create # Validate the form data and return if it is not correct # We'll come back and fill in the ???? with the call to the # interactor shortly. unless (????) flash[:error] = ???? redirect_to(new_users_path) return end user = User.create!(user_params) flash[:success] = "Woohoo, you created an account" redirect_to(user_path(@ser)) end private def user_params @user_params || = params.require(:user).permit( :first_name, :last_name, :email ) end end