class UsersController < ApplicationController def new @user = User.new end end def create @user = User.new() if @user.save session[:user_id] = @user.id redirect_to '/' else redirect_to '/signup' end end private def user_params params.require(:user).permit( :first_name, :last_name, :email, :password) end
Why won't this work??
This is the error I get use def create: Did you implement the create action? The action 'create' could not be found for UsersController