moved rails-specific header stuff into its own partial