This project is archived and is in readonly mode.
If there is an uri then provide better error message while combining javascripts into one
Reported by Neeraj Singh | November 3rd, 2010 @ 02:52 PM | in 3.x
- j = []
- j << 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.js'
- j << 'vendor/rails'
- j << 'application'
= javascript_include_tag j, :cache => 'all'
Above code will work fine in development mode and it will fail only in production mode.
It will work fine in development mode because if it is uri then absolute path is not calculated. However it fails in production mode with following error message which does not provide any clue in terms of what went wrong.
"can't convert nil into String"
Attached is a patch with test.
After the patch the error message would be:
Asset file https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.js is uri and cannot be merged into single file
Comments and changes to this ticket
-
Neeraj Singh November 3rd, 2010 @ 02:56 PM
- Assigned user set to José Valim
Light house is acting up and I am not able to upload the patch.
Here is patch with test.
https://github.com/neerajdotname/rails/commit/0094cb64dd9eebd134f83...
-
Repository November 11th, 2010 @ 04:28 PM
- State changed from new to resolved
(from [793967cd404c839c1af8b3ef847dc1725a1fb7c6]) provide better error message if path is uri [#5914 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
https://github.com/rails/rails/commit/793967cd404c839c1af8b3ef847dc...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Tags
Referenced by
- 5914 If there is an uri then provide better error message while combining javascripts into one (from [793967cd404c839c1af8b3ef847dc1725a1fb7c6]) provide...