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
ddfreyne opened this issue Aug 5, 2019 · 0 comments

Comments

@ddfreyne
Copy link
Member

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
1 participant
You can’t perform that action at this time.