Hi- Say I wanted to move a file from /public/images to /someotherfolder. How would I do this with Rails? Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Is this a difficult problem? Why can I not do:
FileUtils.cp(''file1, ''file2'')? - Even thought the
files exist, it
tells me that they do not.
On Dec 11, 12:10 am, pete
<peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi-
>
> Say I wanted to move a file from /public/images to /someotherfolder.
>
> How would I do this with Rails?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Because you''re trying to access them in relation to the file that
you''re
running it from. If you''re thinking that they''re in public,
try
"#{RAILS_ROOT}/public/file1".
On Dec 11, 2007 11:59 PM, pete
<peterbattaglia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Is this a difficult problem? Why can I not do:
>
> FileUtils.cp(''file1, ''file2'')? - Even thought
the files exist, it
> tells me that they do not.
>
> On Dec 11, 12:10 am, pete
<peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > Hi-
> >
> > Say I wanted to move a file from /public/images to /someotherfolder.
> >
> > How would I do this with Rails?
> >
> > Thanks.
> >
>
--
Ryan Bigg
http://www.frozenplague.net
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---