updated #new with rails helper functionality