ruby-on-rails
-
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
标签