Commit da3dda8c

mo k <mo@mokhan.ca>
2012-06-07 03:33:03
change assets path in dev to /dev-assets from default /assets
1 parent 300c689
Changed files (2)
config/environments/development.rb
@@ -27,6 +27,8 @@ Cake::Application.configure do
   # Expands the lines which load the assets
   config.assets.debug = true
 
+  config.assets.prefix = "/dev-assets"
+
   # Raise exception on mass assignment protection for Active Record models
   config.active_record.mass_assignment_sanitizer = :strict
 
config/application.rb
@@ -45,6 +45,8 @@ module Cake
     # Version of your assets, change this if you want to expire all your assets
     config.assets.version = '1.0'
 
+    config.assets.initialize_on_precompile = false
+
     config.to_prepare {
       Devise::SessionsController.layout "application"
       # Devise::RegistrationsController.layout proc{ |controller| user_signed_in? ? "application" : "users" }