On 28 Jan 2009, at 23:42, Ricky wrote:
> >> It might not be a browser. Eg with a create action you would >> typically >> redirect browsers to the show action, but the XML api probably >> wouldn't do that. > > Thanks for responding Fred. > > So are you saying that sometimes a redirect is not actually a redirect > in the 302 sense of the word? Rather that, sometimes, a redirect > *does* result in actual content being sent back to the browser/AJAX > component? > A redirect is always a redirect. What i'm saying is that sometimes you don't want to redirect, in the aforementioned xml api example you'd probably just respond with an empty response with the appropriate http status code. An ajaxified interface is also a place where you might not want to do a redirect (you'd just return some html to be inserted into the DOM or produce some javascript to execute). Fred > Rick > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

