Displaying 1 result from an estimated 1 matches for "image_upload_project_path".
2013 Jul 09
0
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)
endend
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.or...