Tuesday, July 9, 2013

[Rails] How to move create method into worker(sidekiq)?

how to move create method into worker(sidekiq)?

photos_controller.rb

def create      @project = Project.find(params[:project_id])      @photo = @project.photos.build(params[:photo])      @photo.user = current_user      if @photo.save        redirect_to image_upload_project_path(@project)      end  end

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3afc407f-7a16-457b-b6a3-1744b7f794af%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate