Skip to content

fix editRestaurant by adding session add/commit lines#79

Open
sattamjh wants to merge 1 commit into
udacity:masterfrom
sattamjh:master
Open

fix editRestaurant by adding session add/commit lines#79
sattamjh wants to merge 1 commit into
udacity:masterfrom
sattamjh:master

Conversation

@sattamjh

@sattamjh sattamjh commented Jun 4, 2017

Copy link
Copy Markdown

Added the missing two lines of session add and commit to save the data in the database.

@ghost

ghost commented Aug 8, 2017

Copy link
Copy Markdown

I second this fix! Just finished up this part of the course and checked the Udacity solutions compared to mine. Wouldn't this be a big issue if it were on a live system? While the user see's a temporary edit, once the webserver reads from the database, it would reload the old name since it never got added and committed. 😖

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Can't get to the Database without it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant