in a controller i want to render an image.
i do it like it:
send_data(Magick::Image.read(http://s3.amazonaws.com/a_bucketname/
a_filename).first.to_blob, :type => "image/png", :disposition =>
"inline")

isn't it a more simple solution?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to