Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Rails 3.1.3 was throwing error, path was not being added to sprockets…

… load path.


This fixes it.

/opt/ruby-enterprise-1.8.7-2011.03/bin/ruby /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
couldn't find file 'flash.js'
  (in /u/apps/can_send/dev/app/assets/javascripts/application.js:13)

Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/opt/ruby-enterprise-1.8.7-2011.03/bin/rub...]

Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
  • Loading branch information...
commit 1135765e5c448261dbcdef2897397f2c7b0c4a0f 1 parent 87b3301
jlxw authored

Showing 1 changed file with 2 additions and 7 deletions. Show diff stats Hide diff stats

  1. +2 7 lib/cacheable_flash/rails/engine.rb
9 lib/cacheable_flash/rails/engine.rb
@@ -2,12 +2,7 @@
2 2 # This gem contains this empty engine class which inherits from Rails::Engine.
3 3 # By doing this, Rails is informed that the directory for this gem may contain assets and the
4 4 # app/assets, lib/assets and vendor/assets directories of this engine are added to the search path of Sprockets.
5   -module Jquery
6   - module Rails
7   -
8   - class Engine < ::Rails::Engine
9   -
10   - end
11   -
  5 +module CacheableFlash
  6 + class Engine < ::Rails::Engine
12 7 end
13 8 end

0 comments on commit 1135765

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