lsam26-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Oct-19 20:01 UTC
Confirmation within a controller
I am trying to work on a problem that requires user to confirm with a OK/Cancel option. The problem is I cannot make this determination until after the controller action is called. What I would like to do is the following. a) Call controller/action b) Make the determination whether the popup needs to be shown c) Show the ok/cancel popup d) If ok, proceed with the action, else return I can do step C with page.call "confirm("Are you sure?")" but I see no way to get the return value to go to step D. I can see why this would not work. Are there any alternative implementation strategies? I could take them to a different page and back here again but I was hoping for a simple confirmation dialog. Thanks for your feedback. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---