I have a model ''Picture'' with a blob column ''small'' and a string column ''extension'' in my PictureController , I want to show it in the show view my show action is quite simple def show @user = User.find(params[:user_id]) @picture = @user.picture respond_to do |format| format.html # show.rhtml format.xml { render :xml => @picture.to_xml } end end what should I write in my show.rhtml view to display it ? I thought to add in my show action send_data(@picture.small, :filename => @user.id.to_s +''-small.''+ @picture.extension, :type => @picture.extension, :disposition => ''inline'') and in my view <img src="<%= @user.id.to_s +''-small.''+ @picture.extension %>" /> but it seems to be wrong thanks for your help -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---