I\'d like to use javascript_include_tag to grab all view related scripts using recursion, which a placed in public/javascripts/views.
javascript_include_tag
public/javascripts/views
I\'m tryi
The following (unoptimized) code should work in rails 3.0 or above
<%= javascript_include_tag Dir[Rails.root.join("public/javascripts/views/**/*.js")].map { |s| s.sub(Rails.root.join("public/javascripts/").to_s, "") } %>