Erick Saavedra

Joined

4,230 Experience
42 Lessons Completed
0 Questions Solved

Activity

Other solution if errors partial is not rendering

def create
@tweet = Current.user.tweets.new(tweet_params)
if @tweet.save
redirect_to tweets_path, notice: "Tweet was scheduled successfully"
else
render :new, status: :unprocessable_entity
end
end

Thanks!!

thanks!

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2023 GoRails, LLC. All rights reserved.