如何在子目录中的每个页面上生成不同的标题?我的代码不会抛出错误,但不幸的是,Title组件在它应该呈现的每个页面上呈现每个title-item,例如,每个app.com/title/<title>呈现相同的视图(标题列表)。export default function Title({ paper }) {
// paper is just the entire dataset, and isn't
遵循这里提出的指导:Rails: How to change the title of a page?我正在尝试使用:<h1><%= content_for(:title, "Title for specific page") %></h1> 当我的页面标题成功更新时:<title>Title forspecific page</title> 在我的源代码中,<h1