[Rails] Re: I can't set the title of a page no matter what I have tried to put in my .html.erb file

2018-01-17 Thread Robert Phillips
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

[Rails] Re: I can't set the title of a page no matter what I have tried to put in my .html.erb file

2018-01-15 Thread John Ivanoff
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