Rails displays inside out, so it first displays show.html.erb and stores it in a variable. Then it will display the layout
inside the layout you see
<%= yield %>
shot.html.erb
. :
<% content_for(:footer) do %>
...
<% end %>
:
<%= yield(:footer) %>
, .