Raja Venkataraman wrote:
> Jon Stenqvist wrote:
>> Hi,
>> 
>> I'm not sure i'm my design is correct, but i have around_filter in the
>> controller, where i want to add a small javascript at the end of the
>> page. Is there someway i can use the javascript_tag from the controller?
>> i though there where a helpers proxy available.
> 
> Maybe Im not understanding your situation, but filters are more used for 
> application logic and typical cases like logging, benchmarking etc. 
> Wouldnt it be better to use the layouts folder and stick the javascript 
> in there ?

This will be a plugin that enable auto-refresh with ajax, and the 
after_filter is starting the javascript-update-check-script for the 
configured actions.
-- 
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 rubyonrails-talk@googlegroups.com
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