search for: redirect_gallery_edit

Displaying 1 result from an estimated 1 matches for "redirect_gallery_edit".

2010 Sep 01
0
Error on update_attributes with HABTM relationship
...][]" value="5"> Now no matter what I do, I cannot get Rails to update the Image on submit. I''m using a dead simple method: def update @image = Image.find(params[:id]) respond_to do |format| if @image.update_attributes(params[:image]) format.html { redirect_gallery_edit } else format.html { render :action => "edit" } end end end However, when this runs, Rails spits out the following: Provider(#36927920) expected, got Provider(#39471020) If I update an image with NO linked providers, everything is fine. I''m stumped...