On Jan 13, 2012, at 2:00 PM, Linus Pettersson 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.

Especially important if you are requiring files in a particular order. Require 
tree sorts them in *alphabetical* order, which can play merry hob with your 
library code (libraries usually have to come first, in a particular order).

Walter

> 
> Cheers!
> Linus
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/rubyonrails-talk/-/MpHSG8PaijgJ.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to