Topic: Automatic execute action at certain time
I want to automatic execution action in other controller at certain time. I read more similar posts on stackoverflow(and googling), and all of them tell about whenever or delayed job. But i don't understand how it works=( This is an example of what i want.
@user = User.find(params[:user_id])
@client = @user.clients.create(params[:client])
render :action => 'new'
redirect_to :controller => :some_controller, action => some_action
Last edited by kotara (2012-08-07 05:50:33)