Skip to content

Instantly share code, notes, and snippets.

View diddeb's full-sized avatar

Didde Brockman diddeb

View GitHub Profile
@diddeb
diddeb / sublime-text-3-cloud-drive-sync
Created April 2, 2017 18:35 — forked from kaishin-r/sublime-text-3-cloud-drive-sync
Sync Sublime Text 3 Settings via iCloud Drive
# Create a directory named "Sublime Text 3 Sync" under iCloud Drive
mkdir ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync
# Enter Sublime Text 3's directory
cd ~/Library/Application\ Support/Sublime\ Text\ 3/
# Move "Installed Packages" directory to iCloud Drive and make a link
mv Installed\ Packages/ ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync/
ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync/Installed\ Packages

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one