duplication of rails issue