Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [18a97a66017452dbe6cf6881c69d7a7dedc7a7bd] by Christos Zisopoulos

Revision 18a97a66017452dbe6cf6881c69d7a7dedc7a7bd, committed 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...

6 changed files

  • 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