Yes... the image is fetched by the browser as a completely separate
request, so you need to be able to handle that request.

On Apr 30, 11:22 am, Shandy Nantz <[email protected]>
wrote:
> I got it, here is what I did:
>
> View:
>
>   <%= image_tag("/admin/[email protected]}", :alt => "Image") %>
>
> Controller - code_image
>
>   def code_image
>     @image_data = Image.find_by_id(params[:id])
>     @image = @image_data.img
>     send_data (@image, :disposition => 'inline')
>   end
>
> Hope this is of some help to somebody.
>
> -S
> --
> Posted viahttp://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to