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
classUserController < ApplicationControllerdefindex
halt!(403, "Forbidden") if params[:user_id].nil?
render "index.slang"endend
and says
A status code of 403 was returned, and the content in render will not be delivered to the client.
which is not true. What really happens is that the client receives a response with the status of 403 but the content of the template. The core misunderstanding seems to be from a line further down that says
Unlike other frameworks Amber redirect_to stops the current execution of the request and performs the redirection at that given time...Since redirect_to uses the halt! method in the background.
Activity
eliasjpr commentedon May 9, 2021
Would you like to open a PR to improve the docs? @matthewmcgarvey