I find it confusing, because the language in application.js indicates that separate javascript files need only be included in that directory and they'll automatically be compiled, while other sources say files must be specifically required.
In fact application.js says "not advisable to add code directly here," which I read as "don't do your requiring here, pal," implying that it isn't necessary. Guides didn't make it any clearer. On Jan 13, 2:00 pm, Linus Pettersson <[email protected]> wrote: > That is correct. The .js (or .js.coffee if using coffeescript) files should > be in app/assets/javascript/. > > You could use require tree which is specified from the beginning and will > include all javascript files. I do prefer to require each file separately > though as it gives me more control. > > Cheers! > Linus -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

