开发者

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

开发者 https://www.devze.com 2023-04-09 05:00 出处:网络
After migrate on Rails 3, I have error \"ArgumentError: wrong number of arguments (3 for 1)\" For line:

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

精彩评论

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

关注公众号