Folks, Curious what the current state of the union is with regard to 'failure' idioms for an AJAX call in 2.0 land.
For example, let's say I have a simple form_remote_for that posts to session_controller.rb that validates user credentials and, upon successful validation, redirects that use to some landing page. That's the happy path - now wondering what to do if the validation fails: * Return some sort of internal xml that indicates things have failed using respond_to? and parse the XML/update the page accordingly? * Set the http response code to something in the 4XX range - invoke a failure callback? * Something else I'm not thinking of entirely? Haven't been near this in a while and was wondering what the current practice du jour is... Thanks for any help/insight, CW -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

