From 4185c02d77166badbd5e78952eb38eaa2ad8ff4a Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Tue, 21 Apr 2015 22:11:20 -0400 Subject: [PATCH] Render bootstrap and jquery from a different server. --- app/assets/javascripts/application.js | 3 --- app/views/layouts/_js.html.erb | 8 ++++++++ app/views/layouts/application.html.erb | 4 +++- 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 app/views/layouts/_js.html.erb diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 01e343e..4966855 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -10,9 +10,6 @@ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details // about supported directives. // -//= require jquery -//= require jquery_ujs //= require dataTables/jquery.dataTables //= require_tree . -//= require bootstrap diff --git a/app/views/layouts/_js.html.erb b/app/views/layouts/_js.html.erb new file mode 100644 index 0000000..292fce4 --- /dev/null +++ b/app/views/layouts/_js.html.erb @@ -0,0 +1,8 @@ + + + + + + + diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 5a78f13..d082e4b 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -10,6 +10,7 @@ <% else %> Wrestling App + <%= render 'layouts/js' %> <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %> @@ -26,4 +27,5 @@ <% end %> - \ No newline at end of file + +