class SampleController < ApplicationController def my_action render body: 'response' render body: "double rendering won't happen as this will never be executed" end end