Software Development
Pages
(Move to ...)
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
‹
›
Home
View web version
No comments:
Post a Comment