Hi,

I've asked this before, but I wasn't sure what I was looking for and
what the problem was back then.

What I want is to be able to tell Rails that after -every- AJAX-
request, some default RJS gets executed. I've tried using an
after_filter rendering an rjs-file, but because all of my methods
already use RJS, Rails produces an error similar to when you use two
redirects in one request. I can, of course, add some code to every
file, but that wouldn't be very DRY.

How can I tell Rails, just like you do with your application layout
for example, to do some general stuff in addition to the specific code
in my .rjs files?

Thank you!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to