MarkUsProject/Markus — Issue #603: Replace remote_function with unobstructive javascript
Author: rvlaicu
Created: 2011-12-14 19:14:00+00:00
State: open

In rails 3.1 and onward, its preferred to use unobstructive javascript instead of remote_function calls. The call to remote_function just generates an Ajax request so it can be replaced by an inline Ajax request. These calls occur in many places across the code base, so someone could look into changing all occurrences at once.

Some resources on the matter (thanks to jerboaa and lkysow for pointing them out):
how to do the Ajax request itself
http://www.prototypejs.org/api/ajax/request
a short discussion on switching over from remote_function to unobstructive ajax
http://stackoverflow.com/questions/3332474/how-to-make-ajax-calls-with-rails-3-using-remote-function