[英]Refinerycms undefined method 'title_with_meta'
I'm migrating my refinerycms project to production and i'm now getting the error 我正在将我的精炼厂项目迁移到生产中,现在出现错误
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| %>
What would cause this error? 什么会导致此错误?
The error is caused by the fact that Refinery::Page does not have a title_with_meta method defined on it. 该错误是由于Refinery :: Page没有定义title_with_meta方法而引起的。 Not sure what version you're using, but as of this commit , title_with_meta was moved to the page helper . 不确定您使用的是哪个版本,但是在提交时 ,title_with_meta已移至页面助手 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.