This problem is not critical... but would be helpful for me to know the answer. I ve been using Ryan Bates method of putting titles on pages. BTW, he s a great innovator and contributor to the rails community, isn t he?
申请-求助者档案:
def title(page_title)
content_for(:title) { page_title }
end
排外文件:
<head>
<title>foo.com - <%= yield(:title) %></title>
...
</head>
<body>
...
<h1 class="heading"><%= yield(:title) %></h1>
我试图操纵标题,以添加更多的空间,并使之成为措辞之一。 我认为,如果把标题合并成一个变数,我就能够这样做。 我尝试插入
并且不做任何工作。 我尝试插入: html<i></i>
,并且不做任何工作。 我愿谈谈这一点:
First Second Third
How do I change the code below to make the title look like that?
<% ttl = "First Second Third" %>
<% title ttl %>
感谢您的帮助。