rails files with working paging index