dnagir/guard-rails-assets — Issue #14: undefined method precompile issue
Author: bhavinkamani
Created: 2011-10-10 18:33:10+00:00
State: open

I am running `rails-assets 0.0.9` on just released `rails 3.1.1`. I am getting following error

```
Booting Rails for test environment.
/Volumes/DATA/beekay/.rvm/gems/ruby-1.9.2-head@rails31/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
An error occurred compiling assets: undefined method `precompile' for #
Failed to compile assets.
```

Here's my guard file.

``` ruby
guard 'rails-assets', :rails_env => 'test' do
watch(%r{^app/assets/.+$})
end

guard 'jasmine-headless-webkit' do
watch(%r{^public/assets/.*\.js$})
watch(%r{^spec/javascripts/.*\.coffee$})
end
```

`rake assets:precompile` is working fine. Not sure if it is similar to https://github.com/dnagir/guard-rails-assets/pull/11.