Actually I did not look at the path.

Better to put in in the layouts directory

So final path would be app/views/layout/_header.html.erb

Although because of inheritance will still work.