rails/rails — Issue #3742: manifest gets included, duplicated javascript code
Author: beanieboi
Created: 2011-11-24 12:02:48+00:00
State: open

hey

i encounter double includes in development mode when i use config.assets.debug = true, its ok if config.assets.debug = false

i renamed application.js to lomography.js

development.rb

```ruby
config.assets.debug = true
```

lomography.js

```javascript
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require mootools
//= require mootools_ujs
//= require username
```

html output

```html

```

the lomography.js contains all the javascript again.
in my understanding lomography.js shouldn't be included at all in development mode.
i encountered the issue when i used link_to with :remote => true and a confirm message, because the confirm message was asked twice.

what else do you need?