Either method should be fine. Using response.files will result in it being 
loaded in the head, along with the other JS files.

On Thursday, July 12, 2012 10:49:44 PM UTC-4, MichaelF wrote:
>
> I want to include a JavaScript file, but only for certain views. What's 
> the best way to include it? Do I have the controller append it to the 
> response.files property? Do I simply use the <script> with "src=..." 
> somewhere in the view? Something else?

Reply via email to