I'm asking this because in the views i can't find any body or head tag (It's like they are generated elsewhere).
head tag would usually be defined in one of the layouts. Layouts are by default located in
Eric Bréchemier and mtyaka are both correct.
Another approach (if you need to add custom elements to the header/footer that are specified on a per view basis, you'll want to do something like this with yield blocks
Here's an example allowing the title to be overriden on a per page basis, but the same technqiue applies to setting up
script tags in the HTML head tag.
<html> <head> <title><%= yield(:page_title) || "My awesome site"%></title> </head> <body><%= yield %> </body> </html>
<%= content_for :page_title, "post listing" %> <h1>Here are your posts...</h1>
©2020 All rights reserved.