update items for rails 4