mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Render bootstrap and jquery from a different server.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
8
app/views/layouts/_js.html.erb
Normal file
8
app/views/layouts/_js.html.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||
<!-- Bootstrap CDN -->
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
|
||||
<!-- Latest compiled and minified JavaScript -->
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
|
||||
<style>
|
||||
</style>
|
||||
@@ -10,6 +10,7 @@
|
||||
<% else %>
|
||||
<head>
|
||||
<title>Wrestling App</title>
|
||||
<%= 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 @@
|
||||
</div>
|
||||
</body>
|
||||
<% end %>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user