Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3.2.3 load javascript from public folder before

Is there any way to load JavaScript from public folder before JavaScript-files from assets/javascript?

like image 258
evfwcqcg Avatar asked Aug 05 '26 12:08

evfwcqcg


1 Answers

You can still use the classic javascript_include_tag in your layout.

Given I have a file in_public.js in my public folder.

<%= javascript_include_tag "/in_public" %>
like image 51
Wawa Loo Avatar answered Aug 08 '26 02:08

Wawa Loo