Skip to content
Browse files

adding zerobox assets to pipeline

  • Loading branch information...
1 parent d91e2c5 commit dbf85052d855a2fd25c7a34484b5e84e3931ac81 @thurtt committed Jul 9, 2012
View
0 app/assets/stylesheets/zerobox.css.scss → app/assets/stylesheets/zerobox.css
File renamed without changes.
View
2 app/views/layouts/zerobox.html.erb
@@ -3,7 +3,7 @@
<title>Zero Box Widget</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
- <%= stylesheet_link_tag "zerobox.css.scss" %>
+ <%= stylesheet_link_tag "zerobox.css" %>
<%= javascript_include_tag "zerobox.js" %>
</head>
View
5 config/application.rb
@@ -44,5 +44,10 @@ class Application < Rails::Application
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
+
+ # don't load the app while precompiling
+ config.assets.initialize_on_precompile = false
+
+ config.assets.precompile += ['zerobox.js', 'zerobox.css']
end
end

0 comments on commit dbf8505

Please sign in to comment.
Something went wrong with that request. Please try again.