-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
Probably error in tutorial, Part 2, Section "Route Params" #1450
Comments
Similar error on the same page:
Again here works test with rental instead of rentalS. And whole test case below
Here I already replaced rentalS with rental. |
Perhaps you defined the route with the singular name in app/routes.js? Nothing wrong with that, the name is not special, they just have to match as you have discovered. The code in the tutorial is automatically executed and tested daily, so I am pretty sure the tests do pass as written. |
Indeed :) Magic Ember! Everything worked like a charm with typo. I mean it loaded component, embed proper LinkTo hrefs, and everything else, except tests where I explicitly ask for /rentals/. Thank you. |
I finished the tutorial, both parts. It works fine. Probably only one minor issue is in this promise:
Tutorial doesn't teach this thing :) |
@kisumoto thank you, I filed an issue for that: https://github.com/ember-learn/guides-source/issues/1454 If you happen to be interested in making the change (no worries if not!), please comment on the issue! |
I will look into it and take care of this issue this week! |
@amyrlam @roderickdevelopers thanks for picking it up, as a reminder the PR should be sent to https://github.com/ember-learn/super-rentals-tutorial. We do intend to cover it (tracked in ember-learn/super-rentals-tutorial#137), just haven't had a chance to do it yet. |
I'm following that tutorial. My env:
Tutorial link: https://guides.emberjs.com/release/tutorial/part-2/route-params/
Version selected: 3.18.
Tutorial recommends to add test:
but that test doesn't pass even after routing is enabled. Here is what I've got to pass:
Difference in rentalS => rental in URL.
The text was updated successfully, but these errors were encountered: