Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add content_for :after_javascripts

  • Loading branch information...
commit 35a529639d31ebeec275776120de8ea2f544c870 1 parent 776d051
@shimoju authored
View
1  app/views/layouts/application.html.slim
@@ -41,3 +41,4 @@ html
\==================================================
/ Placed at the end of the document so the pages load faster
= javascript_include_tag "application"
+ = content_for :after_javascripts
View
9 app/views/welcome/index.html.slim
@@ -13,7 +13,8 @@ ul
a.carousel-control.left href="#intro" data-slide="prev" ‹
a.carousel-control.right href="#intro" data-slide="next" ›
-javascript:
- $('.carousel').carousel({
- interval: false
- })
+- content_for :after_javascripts do
+ javascript:
+ $('.carousel').carousel({
+ interval: false
+ })
Please sign in to comment.
Something went wrong with that request. Please try again.