meta tags

9 views
Skip to first unread message

fugee ohu

unread,
May 21, 2018, 9:21:37 PM5/21/18
to Ruby on Rails: Talk
I have to put the following meta tags in my view but the view is rendered into the body of the layout with yield In my layout I've been using <title><%= yield(:title) %></title> and in my views <% content_for :title, "Some title" %> So this much I know how to do Now I have add the following metatags to my posts/show view 
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1">

How do I do this the rails way?
Reply all
Reply to author
Forward
0 new messages