Hello All, We are having two applications which use the same Database.What my requirement is if i upload an image in application1 i want the image to get reflected in application 2 .By Default all images uploaed in app1 are getting stored in app1/public/system folder.How can i reference my app2 to the app1/publuc/system/folder Thanks Jagan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Matt White
2007-Dec-17 19:41 UTC
Re: Help Regarding Uploading a Image and Use it in two places
You might try, in app2, setting a global constant in your application controller called IMAGE_ROOT or something like that, and give it the full absolute path to the images in app1. IMAGE_ROOT = ''/var/www/vhosts/app1/public/system'' On Dec 15, 1:44 am, Jagan <jaganmohan.ja...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello All, > > We are having two applications which use the same Database.What my > requirement is if i upload an image in application1 i want the image > to get reflected in application 2 .By Default all images uploaed in > app1 are getting stored in app1/public/system folder.How can i > reference my app2 to the app1/publuc/system/folder > > Thanks > Jagan--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---