Ruby on Rails
Monday, May 21, 2018
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?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/58461373-ec98-48e1-a9fe-42299610c75b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment