asset-pipeline
-
Rails 4:如何使用 $(document).ready() 和 turbo-links 我在尝试以“Rails方式”组织JS文件时,在我的Rails 4应用程序中遇到了一个问题。它们以前分散在不同的视图中。我将它们组织到单独的文件中,并使用资产管道进行编译。但是,我刚刚了解到
-
Using Rails 3.1, where do you put your "page specific" JavaScript code? To my understanding, all of your JavaScript gets merged into 1 file. Rails does this by default when it adds to the bottom of your manifest file. My above solution has the benefit that if a search box is included on 8 of the 100 pages, it will run on o
标签