-
Notifications
You must be signed in to change notification settings - Fork 39
-
Notifications
You must be signed in to change notification settings - Fork 39
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
undefined method in styleguide view #12
Comments
Could you paste your |
I can confirm it's in routes file.. Should this be in routes as well? |
You changed the original issue after I commented on it. You mentioned you were trying to get |
I can navigate to http://localhost:4000/kss/ There it displays some links, Home and Styleguide. Styleguide is where i get the above error on line two |
I'll need the full backtrace to give a deeper look, |
undefined method `[]' for nil:NilClass Extracted source (around line #2):
Trace of template inclusion: app/views/kss/home/styleguide.html.erb
|
Sounds like you're might be trying to call "styleguide_block" with a section that doesn't exist in your CSS. For example, if you want to call "styleguide_block '1.0' ", you have to make sure you have "Styleguide 1.0" somewhere in one of your CSS files. That was at least my issue when I first started using this. |
More descriptive error with my this patch: #18 |
This issue can be closed, it's fixed! |
Getting an..
undefined method `[]' for nil:NilClass
in..
<h3><%= section.section %> <em><%= section.filename %></em></h3>
The text was updated successfully, but these errors were encountered: