This code should be in index.html.erb instead of all.html.erb