Carl Youngblood
2006-Mar-02 01:03 UTC
[Rails] Way to put javascript you want to appear in the head but declare it in a template?
I have some javascript that is specific to an rhtml template but must appear in the <head></head> section. I figured I could just put it in a variable at the top of my template and make my layout conditionally output that variable if it existed. But is there a better way to do this that has already been standardized in rails? Thanks, Carl -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060302/f8fab754/attachment.html