Rails - Access AJAX Triggering Element in Callback
问题 I have a view, say show.js.erb. And I have a link in another view such that link_to "MyLink", my_object_path, :remote => true successfully returns the show.js.erb view. My question is, from within that view, is there any way to access the element that triggered the AJAX call without having to resort to generating an id specific to individual elements a la ... I want to be able to use this view callback to open a small dialog next to whatever element was clicked on, but I can't seem to find a