Permalink
Browse files

Use cache_control helper instead.

  • Loading branch information...
1 parent 2d4983f commit 5aaf3f19ed751f7f7abfa1ce7dec3d735fb5a81e @fredwu committed Jan 6, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/controllers/heroes.rb
@@ -2,7 +2,8 @@
get :index, :map => '/' do
@heroes = Hero.all
@attrs = %w{names nicks sites services books portraits}
- response['Cache-Control'] = 'public, max-age=300'
+
+ cache_control :public, :max_age => 300
render 'heroes/index'
end
end

0 comments on commit 5aaf3f1

Please sign in to comment.