ruby-on-rails – 未定义的方法`remote_function’
发布时间:2020-12-17 03:28:37 所属栏目:百科 来源:网络整理
导读:我正在使用带有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') % 这
我正在使用带有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') %> 这会产生以下错误 undefined method `remote_function' for #<#<Class:0x2ff0dc0>:0x2f4af38>. 有谁知道为什么? 解决方法
该功能是
Prototype helper的一部分,即
removed from the framework with Rails 3.1并移至
prototype-rails gem.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |