I think I may be missing something here. I have a collection of people
I want to run through. For each person I want to use AJAX to make a
calculation and update the page with the results. First I tried to do
this with just links, which works fine. It looks like this
<% @eligible_players.each do |player| %>
Now my question is this, how can I do this so that the user does not
have to click on the names in order to make that call. I was looking at
the JS reference in the rails API, and it seemed like remote_function is
the way to go. I tried the following
<% @eligible_players.each do |player| %>
but this did not work. Just as a test I tried the
periodically_call_remote, but that obviously does not really work
correctly in this case, because it can call the same thing more than
once per person.
What am I missing here?
Thanks in advance,
Gabe