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

Delete Menu item solution does not work with given html template. #84

Open
mdjolieca opened this issue Jul 27, 2017 · 0 comments
Open

Comments

@mdjolieca
Copy link

Hi, was working through the course lessons and noticed the following:

Html file is here: https://github.com/lobrown/Full-Stack-Foundations/blob/master/Lesson-3/14_Delete-Menu-Item/deletemenuitem.html

Project.py is here: https://github.com/lobrown/Full-Stack-Foundations/blob/master/Lesson-3/15_Delete-Menu-Item-Solution/project.py#L62

I had to change this line 62 in project.py:
"return render_template('deleteconfirmation.html', item=itemToDelete)"

Changed to match the html file name and variable requirements for given template html.
“return render_template('deletemenuitem.html',restaurant_id=restaurant_id, item=itemToDelete)”

Also I did a search on This repository and there is no files named deleteconfirmation.html yet it is referenced it some of your scripts.

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

No branches or pull requests

1 participant