Paypal allows me to upload an image to customize their payment page. It''s looking for something like: http://mysite.com/my_image.gif How do I get rails to serve up an image when paypal goes to this address? I made a route to a controller/action using the url but how do I then serve up an image rather than a webpage? Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> Paypal allows me to upload an image to customize their payment page. > It''s looking for something like: > http://mysite.com/my_image.gif > > How do I get rails to serve up an image when paypal goes to this > address? > > I made a route to a controller/action using the url but how do I then > serve up an image rather than a webpage?Change the returned content-type and then send the raw image data. But unless your image changes, why not just make it static and drop it in public? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Look up send_data() On Jun 30, 5:26 pm, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote:> > Paypal allows me to upload an image to customize their payment page. > > It''s looking for something like: > >http://mysite.com/my_image.gif > > > How do I get rails to serve up an image when paypal goes to this > > address? > > > I made a route to a controller/action using the url but how do I then > > serve up an image rather than a webpage? > > Change the returned content-type and then send the raw image data. > > But unless your image changes, why not just make it static and drop it > in public?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---