Hi so I ran into more errors with this code:
class UsersController < ApplicationController def new @user = User.new end def user_params params.require(:user).permit(:first_name, :last_name, :email, :password) end def create private @user = User.new(user_params) if @user.save session[:user_id] = @user.id redirect_to '/' else redirect_to '/signup' end end end
I don't know what I'm doing wrong. I typed it in like it told me to do and now it won't let me go forward. Can someone help?