迁移到Rails 3后,我有错误"ArgumentError:错误的参数数量(3 for 1)"
为:<%== auto_link(raw(simple_format(h(comment.comment))), :all, :target => '_blank') -%>
回溯:
app/views/logs/_entry.html.erb:94:in `raw'
app/views/logs/_entry.html.erb:94:in
我只在生产服务器上得到这个错误
辅助auto_link
已在Rails 3.1中删除。您需要单独安装Gem才能使用它。此外,请确保检查正确的方法调用。
同时,你应该使用<%=
,而不是<%==