This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "word_separators": "./\\()\"'-:,.;<>~@#$%^&*|+=[]{}`~" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rails g migration DropProducts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rails g task check_files check_dir import_file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| change_column :products, :discount_percentage, :decimal, precision: 5, scale: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RACK_ENV=test bundle exec rake db:migrate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| expect( this action ).to change( something ).by(1) | |
| # trick | |
| expect(response.body).to eql "" | |
| ### Use of 'anything' below | |
| # old? - https://www.relishapp.com/rspec/rspec-mocks/v/2-7/docs/argument-matchers/general-matchers | |
| # http://blog.endpoint.com/2014/09/rspecs-anything-argument-matcher.html | |
| # http://www.rubydoc.info/gems/rspec-mocks/RSpec/Mocks/ArgumentMatchers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def create | |
| fail | |
| end | |
| # will show | |
| {"utf8"=>"✓", | |
| "authenticity_token"=>"Kg0ES4VZZOeqhk+Axold+asCEkNKodWT+T77iIxRvKRdfYe0r9YBjbrcBgLuPyR74XBMLDa7Bc7IHcxcfkSogw==", | |
| "article"=>{"title"=>"From page", | |
| "body"=>"This is quite a cool css"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ERB Helper | |
| Command Name ERB Value Key Binding | |
| ERB Output <%= %> CTRL + SHIFT + . | |
| ERB Eval <% %> CTRL + . | |
| ERB Comment <%# %> CTRL + SHIFT + 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sjdflksdf | |
| ;dflsf | |
| if adslalhsdfds | |
| tadslhfalshdflhdf | |
| else | |
| lkdsflshd | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| begin | |
| raise BadRequest | |
| rescue => error | |
| p error.inspect | |
| end |