Files created by RoR are uneditable

Files that are created when say I run generate controller ______
apparently have some sort of permissions set that won’t let me overwrite
them. So say I create something_controller.rb…if I edit it in TextMate
and then try to re-upload it (I’ve tried both Transmit and Dreamweaver)
I just get a message saying I don’t have permission to overwrite it. Any
ideas?

Josh P. wrote:

Files that are created when say I run generate controller ______
apparently have some sort of permissions set that won’t let me overwrite
them. So say I create something_controller.rb…if I edit it in TextMate
and then try to re-upload it (I’ve tried both Transmit and Dreamweaver)
I just get a message saying I don’t have permission to overwrite it. Any
ideas?

sounds like unix-style permissions on the file at the server. I assume
that you are editing a local copy and uploading (the comment about
Transmit) and that you are on Mac OS X.

Check the owner of the remote files

1 - log in to the server with a terminal style application (or ssh
depending on the security)
2 - ls -l should give you all the file permissions and the current owner

Change owner

1 - chown filename username (I think, man chown for exact syntax)

This should allow you to overwrite

Kev

On Wednesday 23 Nov 2005 04:30, Kev J. wrote:

1 - chown filename username (I think, man chown for exact syntax)

It’s the other way around:

chown username filename

:wink:

~Dave

Dave S.
Rent-A-Monkey Website Development
Web: http://www.rentamonkey.com/