I have a thought ...

I could add a general respond_to to the end of my controller which
responds to every AJAX-request. However, I'm unsure how to do this.
I've tried a few things, but none of them seem to work the way I want
them to.

If this would work I would be able to evaluate flash[:warning] and
based on that decide whether to go on without having to do anything
else. Both flashes will be updated anyway, so on a request that
doesn't have a response, both flashes will be empty.

Back to my question: how can I have my controller respond_to every
AJAX-request?
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to