在打开一些功能,如活动,文档等,时候出现如下错误:
---------------------------------------
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your redMine administrator for assistance.
---------------------------------------
解决办法是在如下文中,添加代码
redmine/config/environment.fb
代码
---------------------------------------
module ActionView
module Helpers
module TextHelper
def truncate(text, length = 30, truncate_string = "...")
if text.nil? then return end
l = length - truncate_string.chars.to_a.size
(text.chars.to_a.size > length ? text.chars.to_a[0...l].join + truncate_string : text).to_s
end
end
end
end