undefined method `remote_function'
ruby, ruby-on-rails
Solution
This function was part of the Prototype helper which was removed from the framework with Rails 3.1 and moved to the prototype-rails gem.
Problem
I am using rails-3.2.1 with blacklight application I am trying to invoke remote_function in my link_to tag. ``` <%= link_to_document document, :label=>document_show_link_field, :onclick => remote_function(:controller => 'catalog', :action => 'save_user_history') %> ``` This gives following error ``` undefined method `remote_function' for #<#<Class:0x2ff0dc0>:0x2f4af38>. ``` Does anyone know why?