Although you're free to use any editor we recommend Sublime. Here's how to get the most out of it
Once you've installed Sublime there's a few things you should do to get things set up properly:
| # Shoulda activemodel cheatsheet | |
| # DB | |
| should have_db_column(:title).of_type(:string).with_options(default: 'Untitled', null: false) | |
| should have_db_index(:email).unique(:true) | |
| # Associations | |
| should belong_to :company | |
| should have_one(:profile).dependent(:destroy) | |
| should have_many(:posts).dependent(:nullify) |
Although you're free to use any editor we recommend Sublime. Here's how to get the most out of it
Once you've installed Sublime there's a few things you should do to get things set up properly:
| { | |
| // This is the ruby default | |
| "tab_size": 2, | |
| // Set to true to insert spaces when tab is pressed | |
| "translate_tabs_to_spaces": true, | |
| // This shows all your whitespace, including spaces and tabs | |
| // helps keep code clean and properly indented! | |
| "draw_white_space": "all", |
| { | |
| "env":{ | |
| "PATH":"${HOME}/.rvm/bin:${PATH}" | |
| }, | |
| "cmd": ["rvm-auto-ruby", "$file"], | |
| "file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
| "selector": "source.ruby" | |
| } |