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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
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
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
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
| $bootstrap-sass-asset-helper: false !default; | |
| // | |
| // Variables | |
| // -------------------------------------------------- | |
| //== Colors | |
| // | |
| //## Gray and brand colors for use across Bootstrap. |
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
| { | |
| "data": { | |
| "type": "user", | |
| "id": 1, | |
| "attributes": { | |
| "name": "Tomster" | |
| }, | |
| "relationships": { | |
| "friends": { | |
| "links": { |
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
| // payload | |
| { | |
| "data": { | |
| "id": 1, | |
| "type": "user", | |
| "attributes": { | |
| "name": "Tomster", | |
| "favorite-food-id": 31 | |
| } | |
| } |
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
| // payload | |
| { | |
| "data": { | |
| "id": 1, | |
| "type": "user", | |
| "attributes": { | |
| "name": "Tomster" | |
| }, | |
| "relationships": { |
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
| { | |
| "data": { | |
| "id": 1, | |
| "type": "user", | |
| "attributes": { | |
| "name": "Tomster" | |
| }, | |
| "relationships": { | |
| "friends": { | |
| "data": [ |
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
| // Unloads all the tweets when moving off the feed page | |
| import Ember from 'ember'; | |
| export default Ember.Route.extend({ | |
| actions: { | |
| willTransition() { | |
| this.store.unloadAll('tweet'); | |
| } | |
| } |
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
| // request before | |
| GET /friends/2 | |
| GET /friends/3 | |
| GET /friends/4 | |
| GET /friends/5 | |
| GET /friends/6 | |
| GET /friends/7 | |
| GET /friends/8 | |
| GET /friends/9 |
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
| export default function() { | |
| //window.server = this; | |
| this.get('users'); | |
| }; |