Hi I changed the permissions of the directory from my command prompt (using Windows). Used this command:
cacls path\folder /t /e /g Everyone:f And I got the same message "Permission Denied". On Monday, January 13, 2014 1:36:02 PM UTC+1, James Turley wrote: > > File.chmod will presumably only work if your Ruby process is being > executed by a user with the required permissions to run chmod in the first > place; I suspect not in this case. Change the permissions on the directory > with your files in so that user can access it, using the shell. > > > On Mon, Jan 13, 2014 at 12:08 PM, <[email protected] <javascript:>> wrote: > >> Hi >> >> I want to change the filename with File.rename but I get "Permission >> denied" eve if I change the file with File.chmod(-777, "path/filename") >> >> I want to do this, to change the name of the image uploaded by Paperclip. >> >> If you have any sugestion or solution, write me. >> >> Thanks. >> >> Darko >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to >> [email protected]<javascript:> >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/d0d5aa70-eb57-4a87-8730-61328c44d9fa%40googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4a0dfeda-df9e-4f59-8cce-9e85d37cde18%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

