Permalink
Browse files

Make tip commands not first person

Close #757
  • Loading branch information...
MicFin committed Aug 30, 2017
1 parent be25dfe commit a2deae419f1537c69091c4b73dc74c1385a0dcc7
Showing with 9 additions and 8 deletions.
  1. +9 −8 tips.md
17 tips.md
@@ -27,13 +27,14 @@ You **should**:
win/lose game logic, you can create a button to simulate that until then.

- _If your success/failure methods aren't working, it's likely that you're not getting to the point where you're making an ajax call._
1. Create my HTML element.
1. Create an HTML element.
2. Create a click handler attached to that element.
2a. Have the click handpreler console.log('hello') AND DO NOTHING ELSE.
3. Verify that any data I want to pass to my api call is the data I expect it to be when I have it in the click handler. (`Using console.log()`)
4. Add an ajax call to my click handler.
5. Verify that the backend server is doing what I expect when I make the ajax call. Check the server log and/or the rails console.
6. Have the success function console.log('success!!') AND DO NOTHING ELSE.
7. Have the success function add "Hello" to the HTML using jQuery
8. Have the success function console.log the data I get back from the server.
- Have the click handler `console.log('hello')` AND DO NOTHING ELSE.
3. Check that any data needed is accessible (`Using console.log()`)
- Use `getFormFields()` to access data from a form if necessary.
- Check value of `store` if necessary
4. Add an ajax call to the click handler.
5. Verify that the backend server is doing what is expect when the ajax call is made. Check the server log and/or the rails console.
6. Have the success function `console.log('success!!')` AND DO NOTHING ELSE.
8. Have the success function `console.log` the data sent get back from the server.
9. Add that data to the HTML using jQuery or handlebars. (or do something else, as appropriate.)

0 comments on commit a2deae4

Please sign in to comment.