In my app users can save queries. I want to warn them if they are
about to overwrite an existing query (same name). I wanted to do this
My question is: Is it possible to generate a confirmation popup from
an RJS template and then somehow get the answer back? To know if my
controller should overwrite the query or just discard the changes.
Up until now, I didn’t find a way to generate a confirmation popup
that will generate this for me…but I was hoping for something a bit
more ruby…and it doesn’t solve the problem of getting the answer back
to the controller.