ruby - Liquid template falls when filtering a collection with 'map' -
after updating jekyll 1.2.1 error when running blog:
generating... liquid exception: can't convert string integer in _posts/ru/issues/2009-06-21-xpath-prime-numbers.md
the trace reffers place in liquid says nothing me:
/library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/standardfilters.rb:108:in `[]': can't convert string integer (typeerror) /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/standardfilters.rb:108:in `map' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/standardfilters.rb:102:in `map' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/strainer.rb:43:in `send' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/strainer.rb:43:in `invoke' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/context.rb:82:in `invoke' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/variable.rb:102:in `render' /library/ruby/site/1.8/rubygems/core_ext/kernel_require.rb:53:in `inject' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/variable.rb:90:in `each' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/variable.rb:90:in `inject' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/variable.rb:90:in `render' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/block.rb:137:in `render_all' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/block.rb:124:in `each' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/block.rb:124:in `render_all' /library/ruby/gems/1.8/gems/liquid-2.5.2/lib/liquid/tags/if.rb:34:in `render' ...
after googling got explanation of similar problems different ruby developers. none of them jekyll. here cannot change jekyll code fix in blog. not understand exactly.
upd: discovered error appears when use { array | map: smth} in templates. smth string.
Comments
Post a Comment