Hoe voer ik server-side code uit bij het klikken op een knop?

Just run it at the rails console and don’t write a plugin.