Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `remote_function' for #<#<Class:0x0000000c5c6190>:0x0000000bff7408> #36

Open
essaebrahem opened this issue Sep 4, 2016 · 0 comments

Comments

@essaebrahem
Copy link

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

  <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')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant