I’d like to use javascript_include_tag to grab all view related scripts using recursion, which a placed in public/javascripts/views.
I’m trying javascript_include_tag "/views", :recursive => true, but failed to add any script.
Regards,
Alexey Zakharov
According to the API documentation of
javascript_include_tag:You cannot recursively include all files in your directory. However, you always can write something like the next line: