create index file for rails4