【发布时间】:2016-10-06 21:21:57
【问题描述】:
我不小心在我的 Redmine 插件中放了一个错误的 flash 语句,现在我的整个 Redmine 都被丢弃了。无论我做什么,我都会收到以下无敌错误信息:
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 服务器 - 无济于事。我玩弄了提到的“救援”项目,但无法真正弄清楚如何让它发挥作用。
有人知道如何修复这个破坏性的错误吗?
【问题讨论】:
标签: ruby-on-rails ruby redmine redmine-plugins