0
我想給refinerycms應用程序佈局添加到自定義控制器即如何將refinerycms佈局導入到自定義控制器中?
layout 'application'
,但我得到的錯誤
undefined method `browser_title' for nil:NilClass
Extracted source (around line #4):
1: <head>
2: <meta charset='<%= ::Refinery::Application.config.encoding %>' />
3: <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
4: <title><%= browser_title(yield(:title)) %></title>
5: <%= raw "<meta name=\"description\" content=\"#{@meta.meta_description}\" />" if @meta.meta_description.present? -%>
6: <%= raw "<meta name=\"keywords\" content=\"#{@meta.meta_keywords}\">" if @meta.meta_keywords.present? -%>
7: <%= csrf_meta_tag if RefinerySetting.find_or_set(:authenticity_token_on_frontend, true)-%>
如何導入煉油廠佈局到自定義控制器?
我覺得你做得很好,但是你需要在你的意見中標題爲<% end %> – apneadiving 2011-06-06 21:42:57
你是什麼意思?我會在哪裏放?按照我之前寫的 – zlog 2011-06-07 10:04:03
,將它添加到新控制器的視圖中。 – apneadiving 2011-06-07 10:19:37