undefined method `remote_function' for #<#Class:0x0000000c5c6190:0x0000000bff7408>
Extracted source (around line #36):
34
35
36
37
38
39
<div class="text-input-bg"><%= select :user_type, :type, [["#{t('admin')}","Admin"], ["#{t('employee_text')}","Employee"],["#{t('student_text')}","Student"],["#{t('parent')}","Parent"]],
{:prompt => "#{t('select_a_role')}"},
{:onChange => "#{remote_function(:url => {:action => "list_user"},
:with => "'user_type='+value",
:before => "Element.show('loader')",
:success => "Element.hide('loader')"
iam migrating ruby 1.8.7 rails 2 to rails 5 ruby 2.4
i got this error
Showing c:/site/simple_cms/app/views/user/all.erb where line #36 raised:
undefined method `remote_function' for #<#Class:0x0000000c5c6190:0x0000000bff7408>
Extracted source (around line #36):
34
35
36
37
38
39