Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix editRestaurant by adding session add/commit lines #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sattamjh
Copy link

@sattamjh sattamjh commented Jun 4, 2017

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

@ghost
Copy link

ghost commented Aug 8, 2017

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. 😖

Copy link

@ghost ghost left a comment

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