girlcodeakl / girlcode2018-term2

Girl Code project
0 stars 0 forks source link

Save and display the author of each post #9

Closed mgatland closed 6 years ago

mgatland commented 6 years ago

When a user posts a new post, let them put in their name so we know who posted it.

We'll add a new text input (the white box you type words into) to post.html

Part 1

Part 2

If someone has already finished the issue Clicking 'Post it!' should not go to a new page then you need to do an extra step:

Part 3

Now it's (hopefully) being sent to the server, we need to teach the server to look out for this new information.

post.author = request.body.author;

Part 4

let authorElement = $('<div>author goes here</div>');
postElement.append(authorElement);

You'll need to change it to include the actual author value post.author - you may need to use quotation marks to make it clear that you want the actual post.author and don't want it to literally say "post.author"

notes

This task does not include updating the CSS look + feel of the post.html page. Just make it work, don't focus on making it pretty in this ticket.