0

我正在将我的 refinerycms 项目迁移到生产环境,现在我遇到了错误

 NoMethodError in Refinery/admin/pages#index

Showing /var/www/vhosts/tomstestsite.us/PersonalTrainingKT/app/views/refinery/admin/pages/_page.html.erb where line #10 raised:

undefined method `title_with_meta' for #<Refinery::Page:0x000000083d5538>

Extracted source (around line #10):

7:     <% end %>
8: 
9:     <span class='title <%= 'toggle' if page.children.present? %>'>
10:       <%= page.title_with_meta.html_safe %>
11:       <% if Refinery.i18n_enabled? and Refinery::I18n.frontend_locales.many? %>
12:         <span class='preview'>
13:           <% page.translations.each do |translation| %>

什么会导致这个错误?

4

1 回答 1

1

该错误是由 Refinery::Page 没有定义 title_with_meta 方法引起的。不确定您使用的是什么版本,但截至本次提交,title_with_meta 已移至页面助手

于 2012-09-02T16:35:54.660 回答