Displaying 1 result from an estimated 1 matches for "gundel".
Did you mean:
gendel
2011 Aug 15
2
Delayed_Job: code working fine without .delay / with .delay it fails. Why?
Hi all,
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
code?
#village_controller
def post_info
@village = Village.find(params[:id])
@village.delay.upgrade
flash[:notice] = "Upgrading"
redirect_to village_url(@village)
end