update index file in rails