-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Missing templates result in (incorrect) missing layout error #246
Comments
Hi @pat, thanks for reporting this! So I looked into this, and it seemed like However, in looking into this, I did realise that Was this possibly the scenario you encountered? If you could share a little more detail here, it would help make sure we fix this properly. In any case, to fix the issue I did notice, I just pushed #247, which removes Would you be able to try that branch in your app see if that sorts it for you? |
Thanks @timriley, I can confirm it was due to missing partials - or rather, partials in a If I get a moment to pause from the current wrangling (content security policies 🤔), I'll give your branch a try. |
@pat Ah yes, regarding your In your case I'd suggest you update each |
Thanks Tim, those changes make sense, I'll keep an eye out for other partials as I go. |
Hey folks, just giving the migration to 2.1.0.rc1 a shot, and have come across a misleading error - something that cropped up when I last poked around with the earlier beta releases too:
If a template file doesn't exist, the error that I get is that the layout can't be found.
view/lib/hanami/view.rb
Lines 528 to 543 in 89fa278
If I comment out the rescue and the line below it - lines 540 & 541 - then I get the original TemplateNotFoundError bubbling up instead, and that is actually useful because it tells me the missing template. I presume that rescue's in there for a reason though, so I'm not sure what the appropriate fix should be!
(FWIW: Ruby 3.2.2, hanami-view 2.1.0.rc1, macOS Ventura)
The text was updated successfully, but these errors were encountered: