To get the number (octal) file permission use the following: stat -c “%a” your.file
Tag: file
Gitignore not ignoring file
If after you’ve updated .gitignore to ignore a file and the changes are not being ignored, do the following: git rm /path/to/your/file –cached This will remove the file from the repository, but not from the file system.
Rails 4, Carrierwave, Remote file url uploading
If you’re running into the following error when attempting to use Carrierwave to upload a remote file url: TypeError: no implicit conversion of nil into String Then you’re probably very frustrated at the moment. I dug into the carrierwave gem to figure the issue out exactly, however I realized there was an easier (and much […]