This project is archived and is in readonly mode.

Changeset [18a97a66017452dbe6cf6881c69d7a7dedc7a7bd] by Christos Zisopoulos

June 26th, 2009 @ 05:47 AM

Handle missing javascript/stylesheets assets by raising an exception

An exception will be raised if a local javascript/stylesheet file included by the stylesheet_link_tag or javascript_include_tag can not be found.

When caching is enabled, we use atomic_write to ensure that the cache file is not created with zero length.

Signed-off-by: Michael Koziarski michael@koziarski.com

[#2738 state:committed] http://github.com/rails/rails/co...

Committed by Christos Zisopoulos

  • M actionpack/lib/action_view/helpers/asset_tag_helper.rb
  • M actionpack/test/fixtures/public/elsewhere/cools.js
  • M actionpack/test/fixtures/public/elsewhere/file.css
  • M actionpack/test/fixtures/public/javascripts/common.javascript
  • M actionpack/test/fixtures/public/stylesheets/random.styles
  • M actionpack/test/template/asset_tag_helper_test.rb

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>