Refinerycms undefined方法'title_with_meta'

时间:2012-09-02 15:42:26

标签: ruby-on-rails ruby refinerycms

我正在将我的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| %>

什么会导致此错误?

1 个答案:

答案 0 :(得分:1)

错误是由Refinery :: Page没有定义title_with_meta方法引起的。不确定您使用的是哪个版本,但自this commit起,title_with_meta已移至page helper