Is there any way to trigger a Rails action from Javascript?
The one way I can think of is use some sort of Rails listener on a
hidden form field, then update that field with Javascript. But that
seems like it’s going to put a huge load on my server, so it’s probably
not a great option. Anything more direct?
Is there any way to trigger a Rails action from Javascript?
The one way I can think of is use some sort of Rails listener on a
hidden form field, then update that field with Javascript. But that
seems like it’s going to put a huge load on my server, so it’s probably
not a great option. Anything more direct?