When changing a file's name you need to have write permission on the 
containing directory.

On Monday, January 13, 2014 7:08:35 AM UTC-5, [email protected] 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].
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/67f589e8-d19f-4989-a912-9f8c9fa29f01%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to