Hello, I''m using squeegy fleximage for image upload and rendering. My controller action code looks like this : def showimg @promo = Promotion.find(params[:id]) respond_to do |format| #format.png { image_tag @promo.file_path(@promo) } format.html { render :inline => "@promo.operate {|p| p.resize ''30x30''}", :type => :flexi } #format.xml { render :xml => @promo } end end However I''m having much difficulty rendering the image; I''m using the following code in my view ; <div> <%render_component(:controller=>''promotions'',:action=>''showimg'',:id=>promotion.id) %> </div> And this view actually doesn''t correspond to the correponding view of the above controller action code.The url corresponding to the above controller action however displays very well my image, but I''m having very much difficulty to display it in this view. Instead of having my image, i''m having some binary data, quite a messy thing. I''m asking myself whether this doesn''t have to do with the respond_to format. Does anyone know what''s the problem exactly ? Regards, Joel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---