thanks all, I will bear all this in mind.
On Monday, 15 January 2018 20:15:27 UTC, John Ivanoff wrote:
>
> I use
> /app/views/layouts/application.html.erb
>
>
>
> <%= yield :head %>
>
>
> <%= yield %>
>
>
>
> /app/views/foo/bar.html.erb
>
> <% content_for :head do %>
> A simple
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
2 matches
Mail list logo