I use
/app/views/layouts/application.html.erb
<%= yield :head %>
<%= yield %>
/app/views/foo/bar.html.erb
<% content_for :head do %>
A simple page
<% end %>
Hello, Rails!
This way I can add "'meta descriptions" and "meta keywords" to individual
pages
As Hassan mentioned
I use
/app/views/layouts/application.html.erb
<%= yield :head %>
<%= yield %>
then in the page
/app/views/fo/bar.html.erb
<% content_for :head do %>
A simple page
<% end %>
Hello, Rails!
This way I can add other tags to the head section. Like `meta description`
and maybe
2 matches
Mail list logo