代码之家  ›  专栏  ›  技术社区  ›  ineedahero

Redmine插件被错误的flash语句破坏

  •  1
  • ineedahero  · 技术社区  · 8 年前

     ActionView::Template::Error (undefined method `html_safe' for
     :value:Symbol):
         54:     <div id="sidebar">
         55:         <%= yield :sidebar %>
         56:         <%= view_layouts_base_sidebar_hook_response %>
         57:     </div>
         58: 
         59:     <div id="content">
         60:         <%= render_flash_messages %>   app/helpers/application_helper.rb:316:in `block in
     render_flash_messages'   app/helpers/application_helper.rb:315:in
     `render_flash_messages'   app/views/layouts/base.html.erb:57:in
     `_app_views_layouts_base_html_erb__1290735862753404915_23873920'
    

    幸运的是,这个问题 happened before

    不幸的是,所提出的解决方案都不适用于我,尽管它们适用于提出这个问题的人。

    我使用以下命令生成了一个新的密钥,直接从 Redmine tutorial :

    bundle exec rake generate_secret_token
    

    我重新启动了WEBrick服务器,但没有任何效果。我玩弄了提到的“救援”项目,但真的不知道如何让它工作。

    1 回复  |  直到 8 年前
        1
  •  0
  •   ineedahero    8 年前

    仅供参考——手动更改输入键:

     config/initializers/secret_token.rb