Tanya Lamontagne
Joined
20 Experience
0 Lessons Completed
0 Questions Solved
Activity
These videos are a little too outdated for rails 7, which is causing a bunch of issues trying to follow along :(
I am just learning Ruby on Rails now, I am no expert, but what worked for me was adding "local: true" to the form and
@user = User.new(user_params)
if @user.save
redirect_to root_path, notice: "Successfully created account"
else
render :new, status: 422
end
in the controller