Displaying 1 result from an estimated 1 matches for "save_with_avatar".
2008 Mar 20
0
Having trouble with a remote-crop-then-resize using attachment fu =(
...:size => (@ying.width).to_i * (@ying.height).to_i
)
avatar.ying_id = @ying.id
avatar.scene_id = nil
avatar.user_id = nil
@ying.avatar = avatar
avatar.thumbnails.clear
# avatar.save!
respond_to do |format|
if @ying.save_with_avatar(avatar)
flash[:notice] = ''Ying was successfully created.''
format.html { render :action => "show" }
format.xml { render :xml => @ying, :status
=> :created, :location => @ying }
else
format.html { rende...