I noticed this in both the middleman-dato client as well as the cli. The examples both reference a method that loops through all items and calls to_hash but if one of those fields is a picture, this error is raised:
Fetching content from DatoCMS... /Users/john/.rvm/gems/ruby-2.3.0/gems/dato-0.3.7/lib/dato/dump/dsl/root.rb:24:in `eval': wrong number of arguments (given 0, expected 1) (Argume
ntError)
from /Users/john/.rvm/gems/ruby-2.3.0/gems/dato-0.3.7/lib/dato/local/field_type/file.rb:40:in `to_hash'
from /Users/john/.rvm/gems/ruby-2.3.0/gems/dato-0.3.7/lib/dato/local/field_type/image.rb:37:in `to_hash'
I noticed this in both the
middleman-dato
client as well as the cli. The examples both reference a method that loops through all items and callsto_hash
but if one of those fields is a picture, this error is raised: