From 32157a2dd208f7417ba09c645be6cd28a1dca988 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Mon, 6 Sep 2010 15:00:31 +0200 Subject: Add documentation on serving assets from engine strategies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Valim --- railties/lib/rails/engine.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'railties/lib/rails/engine.rb') diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index d46824704b..10df9b3a6c 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -162,6 +162,16 @@ module Rails # With such config, asset paths will be automatically modified inside Engine: # image_path("foo.jpg") #=> "/my_engine/images/foo.jpg" # + # == Serving static files + # + # By default, rails use ActionDispatch::Static to serve static files in development mode. This is ok + # while you develop your application, but when you want to deploy it, assets from engine will not be served. + # + # You can fix it in one of two ways: + # * enable serving static files by setting config.serve_static_assets to true + # * symlink engines' public directories in application's public directory by running + # `rake railties:create_symlinks` + # # == Engine name # # There are some places where engine's name is used. -- cgit v1.2.3