rendering images

Guys,
Sorry for the rush mail but here ir goes:

send_data (File.new("public/images/royal_palace.JPG").read,
  :filename => 'test.jpg',
  :type => "image/jpeg",
  :disposition => "inline" )

The above piece of code doesn’t work… really can’t tell why. It just shows me my action name in the page:


http://localhost:3004/image/show_image

Any ideas?

Thanks very much,
Leo