Save info to database when user clicks on button or link


#1

I’m working on a web app where users can record a video from their
webcam using flash.

They click record, then view… after clicking view they can playback
the video they just recorded in the browser. At this point I want the
user to be able to reject the video and not have its information saved
in the database, or click accept and have the videos info stored in the
database.

What do you use in ruby to execute a certain code block when a button or
link is clicked.

Thanks a lot.