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

Tutorial show page won't load if missing videos #26

Open
jmejia opened this issue Dec 3, 2018 · 0 comments
Open

Tutorial show page won't load if missing videos #26

jmejia opened this issue Dec 3, 2018 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@jmejia
Copy link
Contributor

jmejia commented Dec 3, 2018

If a tutorial doesn't have any videos and we visit its show page an error occurs when trying to call current_video.title since current_video is nil.

A possible easy fix is to default to Video.new if there aren't any videos associated with the tutorial.

@jmejia jmejia added bug Something isn't working good first issue Good for newcomers labels Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant