Forum: Ruby on Rails Way to put javascript you want to appear in the head but dec

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Eca15b2b601e7e577d38bd5210a753ac?d=identicon&s=25 Carl Youngblood (Guest)
on 2006-03-02 02:03
(Received via mailing list)
I have some javascript that is specific to an rhtml template but must
in the <head></head> section.  I figured I could just put it in a
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?

This topic is locked and can not be replied to.