In my layout I want:
<body class="<%= yield (:body_class) %>">
And I also want to call it from another template:
<% content_for :body_class, "my_class" %>
"> And I also want to call it from another template: <% content_for :body_class, "my_class" /> "> And I also want to call it from another template: <% content_for :body_class, "my_class" /> "> And I also want to call it from another template: <% content_for :body_class, "my_class"/>
In my layout I want:
<body class="<%= yield (:body_class) %>">
And I also want to call it from another template:
<% content_for :body_class, "my_class" %>
In layout:
and in template: