Perhaps something like this would help, if you think there's enough duplication to worry about:

http://guides.rubyonrails.org/layouts_and_rendering.html#using-nested-layouts

If not, disregard!