Calling a ruby function on button click #345
Replies: 2 comments 23 replies
-
I'm not sure what you are asking for here, but I'm guessing you want to have a user click a button, and have some code executed on the server based on the button click, but not have navigation go to a new page. Assuming that is what you want, you would have to have javascript code on the page that overrides the default button behavior to submit the request via |
Beta Was this translation helpful? Give feedback.
-
Thank you. That looks like more or less what Unpoly does, is that right? Seems they even have a Roda plugin ready to go, so I will be checking that out. Thank you for your reply. By the way, I really Like Roda (and many of your other projects) a lot. Thank you for your generosity. |
Beta Was this translation helpful? Give feedback.
-
Hello all,
How can I call a ruby function when a button is clicked without requesting a new page?
Beta Was this translation helpful? Give feedback.
All reactions