I was getting a strange
Errno::EACCES error permission denied when I tried to upload photos.
Then I ran
sudo chmod -R 777 /home/user/Projects/myApp/ on a rails project.This command did not solve my problem and now every time when I open a file I get prompted:
Do you want to run designers.js.coffee, or display its contents?
How can I make this go away?