Running server side ruby code after an event

You can adapt this example to your needs.

「いいね!」 5