./public
directory.
:public_folder
option:
set :public_folder, File.dirname(__FILE__) + '/static'Put this code in a
configure
block
./public/css/style.css
is made available as http://example.com/css/style.css
.
:static_cache_control
setting to add Cache-Control header info.
Use an explicit array when setting multiple values:
set :static_cache_control, [:public, :max_age => 300]
Casiano Rodriguez León 2015-01-07