VIEW MORE ARTICLES
Rinas Writes

February 06, 2022

TIL in Rails: Code after redirect_to gets executed
Since it gets executed, we need to add `return` 

redirect_to url and return

Here is the issue which talks about this: https://github.com/rails/rails/issues/26363