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

#find_all yields Nanoc::Core::Item, not item views #1446

Closed
denisdefreyne opened this issue Aug 5, 2019 · 0 comments · Fixed by #1447
Closed

#find_all yields Nanoc::Core::Item, not item views #1446

denisdefreyne opened this issue Aug 5, 2019 · 0 comments · Fixed by #1447

Comments

@denisdefreyne
Copy link
Member

denisdefreyne commented Aug 5, 2019

Steps to reproduce

  1. Create an ERB-evaluated file, e.g. content/foo.erb
  2. Add items.find_all { |item| item[:kind] == 'game-page'} to it
  3. Compile

Expected behavior

Executes without erroring

Actual behavior

Errors:

NoMethodError: undefined method `[]' for
  <Nanoc::Core::Item identifier="/foo.erb">:Nanoc::Core::Item

Details

#find_all yields Nanoc::Core::Item, but is supposed to yield item views.

Crash log

n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant