<%= if @meta_leeds == "leeds" %>
<meta property="og:image" content="http://www.some.link/to/image"/>
<% end %>
I want to embed a specific meta tag only on one page of my rails application. I defined :
@meta_leeds = "leeds"
in the pages' controller and it will display the string when put between a h1 tag but it will not output the meta tag based on the outcome of the above if statement.
What am i doing wrong?