The first three requires bring in the files in vendor/assets/javascripts, while the lastrequire_tree . tells sprockets to require everything in the same directory. The require order is alphabetical, so you may have to move things around or be more specific to correctly get your dependencies in order.
On Mon, Jul 18, 2011 at 10:07 PM, David Zhang <dzhan...@gmail.com> wrote: > In Rails 3.1.... > > This is my application.css: > /* > *= require_self > *= require_tree . > */ > > This is my application.js: > //= require jquery > //= require jquery_ujs > //= require jquery-ui > //= require_tree . > > What does the "require_tree ." do? > > -- > 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/-/VYCzvxOHRwMJ. > 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. > -- Rajeev Kannav Sharma<http://www.google.com/search?q=Rajeev+Kannav+Sharma&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a> -- 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.