sha*_*404 5 ruby ruby-on-rails
我正在使用带有blacklight应用程序的rails-3.2.1
我试图在我的link_to标签中调用remote_function.
<%= link_to_document document, :label=>document_show_link_field, :onclick => remote_function(:controller => 'catalog', :action => 'save_user_history') %>
Run Code Online (Sandbox Code Playgroud)
这会产生以下错误
undefined method `remote_function' for #<#<Class:0x2ff0dc0>:0x2f4af38>.
Run Code Online (Sandbox Code Playgroud)
有谁知道为什么?