if statements in index.html.erb