Even if you define filters for this action, it will also be executed regardless of whether you defined the action or not, and like Glen mentioned in his link, the rails automatically display the same name as the action inside the folder so named by the controller (which is present in the internal folder of views).
An empty action is equivalent to no action, but it is prescribed to define an action for some reason (for example, understandable and maintainable).
Link: here, this link says
Note that the empty method from the above example will work just fine because Rails will by default display the new.html.erb view, unless the action says otherwise
Therefore, an explicit HTTP response is determined if you must change the default response.
source share