Hi, i''m trying to save a file in one place if it''s Linux and another one if it''s WIndows.... But if someone using Windows put to save on Linux, will show a error page. How can i verify what of those are the user using? -- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Bla ... wrote:> Hi, i''m trying to save a file in one place if it''s Linux and another one > if it''s WIndows.... > But if someone using Windows put to save on Linux, will show a error > page. > How can i verify what of those are the user using?-- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Bla ... wrote:> Hi, i''m trying to save a file in one place if it''s Linux and another one > if it''s WIndows.... > But if someone using Windows put to save on Linux, will show a error > page. > How can i verify what of those are the user using?I believe RUBY_PLATFORM should have that information. It''s rare that you''d need it, though; have you looked at the Tempdir stuff? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 15 July 2010 13:27, Bla ... <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Bla ... wrote: >> Hi, i''m trying to save a file in one place if it''s Linux and another one >> if it''s WIndows.... >> But if someone using Windows put to save on Linux, will show a error >> page. >> How can i verify what of those are the user using?I don''t think it is possible for a web app to specify where a file is saved to on the users PC (assuming that is what you mean), the user must select that himself. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.