aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/engine.rb10
1 files changed, 10 insertions, 0 deletions
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.