separate files. However I don't know how to organize them.
top of your view.html.erb:
I suggest putting it all into one file, which you can then minify and gzip. The client will only have to download it once, as it'll be cached on all subsequent requests.
This changes with Rails 3.1 and the asset pipeline!!!
Separate files are best as you indicate. The issues about how to reference them all and link them goes away with rails 3.1 which aims to compile them all into single files for production.
for detail: http://documentcloud.github.com/jammit/
Add js-files in assets.yml (see code below)
Add simple code in application layout:
maybe you want to use application_helper
©2020 All rights reserved.