I wrote a simple code to set up the "pit_id" from a village table from
1 to 2, from 2 to 3 and so on.
It works fine without .delay . But i need it so whats wrong with that
@village = Village.find(params[:id])
flash[:notice] = "Upgrading"
update_attribute(:pit_id, pit_id + 1)
I've heard that there could be problems with the variables when using
I already tried @village.delay.upgrade(@village)