[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

Re: [Rails] 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 %> 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