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 <%==
.
精彩评论