如何从炼油厂主页中删除页面标题[RAILS]

sam*_*207 1 ruby ruby-on-rails refinerycms ruby-on-rails-3

我正在开发一个项目,我正在建立在'refinery cms'之上,我遇到了一个问题,在我的主页中,除了我添加的页面内容之外,它显示的页面名称为'home' ,

我发现它从中返回

#app/views/refinery/_content_page.html.erb

<%= render_content_page(@page, {
      :hide_sections => local_assigns[:hide_sections],
      :can_use_fallback => !local_assigns[:show_empty_sections] && !local_assigns[:remove_automatic_sections]
    }) %>
Run Code Online (Sandbox Code Playgroud)

谁能告诉我如何从主页上删除此页面名称

我正在跑步

  • 宝石'refinerycms','〜> 2.0.0'
  • 宝石'轨道','3.2.8'
  • 红宝石1.9.2

谢谢你的帮助

小智 5

尝试将其替换为:

<%= render_content_page(@page, {
      :hide_sections => [:body_content_title, local_assigns[:hide_sections]],
      :can_use_fallback => !local_assigns[:show_empty_sections] && !local_assigns[:remove_automatic_sections]
    }) %>
Run Code Online (Sandbox Code Playgroud)

  • 如果只有标题必须消失:`<%= render'/ refinery/content_page',:hide_sections => [:body_content_title]%>` (2认同)