-
Notifications
You must be signed in to change notification settings - Fork 96
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
Can't draw templates that require instance variables #555
Comments
Hey @vividmuimui, many thanks for the detailed bug report. I think I might know why this is not working - I'll take a look now and see if I can get it fixed 👍 |
@vividmuimui I've just opened PR #558 that should fix the issue - can you give it a try and let me know if it works for you? You can pull the Lookbook gem directly from the PR with the following: gem "lookbook", github: "ViewComponent/lookbook", branch: "fix-template-assigns" |
Hey again @vividmuimui, just to let you know I've just released v2.2.0 that should fix the issue you were seeing. I'm going to go ahead and close this issue now but if you are still having problems with the new version feel free to reopen or let me know. Thanks again for the bug report :) |
@allmarkedup |
Fantastic, thanks for letting me know! |
Describe the bug
When rendering view templates that require instance variables, the following error occurs
To Reproduce
Steps to reproduce the behavior:
bin/rails generate scaffold Article title:string body:text
Expected behavior
I want the preview to be displayed without error.
Screenshots
Version numbers
Please complete the following information:
Additional context
The following is a sample project that is actually in error.
https://github.com/vividmuimui/LookBookSample/tree/report-issue
https://github.com/vividmuimui/LookBookSample/blob/report-issue/test/components/previews/articles/index_preview.rb
The text was updated successfully, but these errors were encountered: