Skip to content

Commit

Permalink
Redirect to submitted review on submission
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhanshuguptagit authored May 10, 2021
2 parents 630b6d0 + 60963eb commit b4a6218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users/reviews_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def update
@review.assign_attributes(update_if_level_only_review(update_status(review_params)))

if @review.save
redirect_to :root, notice: 'Review saved successfully!'
redirect_to user_review_path(current_user, @review.id), notice: 'Review saved successfully!'
else
render :edit
end
Expand Down

0 comments on commit b4a6218

Please sign in to comment.