Software Development
Pages
Home
About
Contact
Sunday, November 13, 2016
Set title dynamically in Rails 5
In article show page:
<%=
content_for
(
:title
,
@article
.
title
)
%>
In layout file:
<
title
>
<
%= yield(:title) %>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment