Using the update_attribute() API using the rails console
I had a task at work to add data from the rails console after generating migrations and was puzzled about how to do it. After spending some time on the problem, I asked for help and this is what I got: object=Model.first object.description = "Lorem I...
Aug 3, 20201 min read10


