0

在编辑器中单击添加链接时,出现以下错误。

Rendered /home/amit/.rvm/gems/ruby-1.9.3-p392/gems/refinerycms-pages-2.0.10/app/views/refinery/admin/pages_dialogs/link_to.html.erb within layouts/refinery/admin_dialog (61.3ms)
Completed 500 Internal Server Error in 187ms

ActionView::Template::Error (undefined method `page_title_with_translations' for #<#<Class:0xb1672e4>:0xb5e0730>):
    11:                 :rel => page_link.title,
    12:                 :class => 'page_link'
    13:               }.merge(link_args) do %>
    14:     <%= page_title_with_translations page_link %>
    15:     <%= page_meta_information page_link %>
    16:   <% end %>
    17: </li>

环境:

ruby-1.9.3-p392
rails 3.2.13
refinerycms 2.0.10

配置/初始化程序/炼油厂/i18n.rb

Refinery::I18n.configure do |config|
   config.enabled = true

   config.default_locale = :fi

   config.current_locale = :fi

   config.default_frontend_locale = :fi

   config.frontend_locales = :en, :fi

   config.locales = {:fi=>"Finish", :en=>"English"}
end

知道如何解决这个问题吗?

4

1 回答 1

0

我设法通过Refinery::Admin::PagesDialogsController用 2.0.10 覆盖版本 2.0.8 来修复。

遵循Refinery::Admin::PagesDialogsController固定问题的行

helper :'refinery/admin/pages'

感谢@Pigueiras 和我在一起

于 2013-05-31T06:56:21.013 回答