edit index.html with Rails 3.x & 4.x