diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 3a534ef..9617c66 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -1,17 +1,3 @@ - - -// This is a manifest file that'll be compiled into application.js, which will include all the files -// listed below. -// -// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, -// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. -// -// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the -// the compiled file. -// -// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD -// GO AFTER THE REQUIRES BELOW. -// //= require jquery //= require jquery_ujs //= require_tree . @@ -152,16 +138,6 @@ function chartbar(Container, Datas, Categories, Title){ } -$(document).ready(function() { - - - - - - -}); - - diff --git a/app/assets/javascripts/surveys.js.coffee b/app/assets/javascripts/surveys.js.coffee deleted file mode 100644 index 7615679..0000000 --- a/app/assets/javascripts/surveys.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 59f1dc6..8715376 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -3,7 +3,7 @@ %head %title Le Pic Vert - Votre avis sur les sorties du Pic Vert = stylesheet_link_tag "application", :media => "all" - = javascript_include_tag "application", :debug => true + = javascript_include_tag "application" = csrf_meta_tags diff --git a/config/environments/production.rb b/config/environments/production.rb index a6684a9..5a0ac2e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -12,10 +12,10 @@ Survey::Application.configure do config.serve_static_assets = false # Compress JavaScripts and CSS - config.assets.compress = true + config.assets.compress = false # Don't fallback to assets pipeline if a precompiled asset is missed - config.assets.compile = false + config.assets.compile = true # Generate digests for assets URLs config.assets.digest = true