created index template for Rails