嗯,我看别人的视图代码里面没有加入特别的标识,但是 link_to 是可以加中文字符参数的,我加入中文字符参数以后,这个页面就报错了,改成英文就可以了。比如在_head.html.erb 中有中文,则会抛出异常
Showing RailsRoot/app/views/layouts/_header.html.erb where line # raised:6Extracted source (around line #):Trace of template inclusion: app/views/layouts/application.html.erb
Full Trace 最后一句是
org.jruby.RubyMatchData.updateCharOffset(RubyMatchData.java:137)