How to update value of a Model's attribute here is the solution item = Item.find(1) item.popularity = 1 item.save