开发者

Rails 3 ArgumentError: wrong number of arguments (3 for 1)

After migrate on Rails 3, I have error "ArgumentError: wrong number of arguments (3 for 1)"

For line:

<%== auto_link(raw(simple_format(h(comment.comment))), :all, :target => '_blank') -%>

Backtrace:

开发者_开发百科
app/views/logs/_entry.html.erb:94:in `raw'
app/views/logs/_entry.html.erb:94:in 

I got this error only on Production server


The helper auto_link has been removed in Rails 3.1. You need to install the Gem separately to use it. Also, make sure to check the correct method invocation.

Also, you should use <%=, not <%==.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜