You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rails controller, render/redirect_to are not halting the controller's action execution and any logic can be placed after it.
But this looks at least strange/confusing to do so. I recently discovered a case where people used this.
# baddefaction# ... logicrender ... # <--- not the last statement# ... other logicend# gooddefaction# ... logic# ... other logicrender ... # <-- the last statementend
The text was updated successfully, but these errors were encountered:
In rails controller,
render
/redirect_to
are not halting the controller's action execution and any logic can be placed after it.But this looks at least strange/confusing to do so. I recently discovered a case where people used this.
The text was updated successfully, but these errors were encountered: