Tom Ha wrote: > When I click on a certain button, 3 things are supposed to happen: > - INSTANTLY: the button should become disabled (either by setting > ":disabled" to "true" by updating the partial or by using > ":disable_with" Just add an onclick javascript script event that disables the button - no need for the server to push this back. > - INSTANTLY: one or several things should appear on the page (probably > as :partials) Serve this from your controller as normal.
> - "IN THE BACKGROUND": sending out 2 emails (which takes too much time > to wait for) Add the emails to be sent to a queue table (instantaneous) and have a background process that routinely generates the emails. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

