Hello,
i try to run middleman article “Title”, but something goes wrong.
'# middleman article "Neuer Artikel"
(erb):1:in `template': undefined method `wrap_layout' for # <Middleman::Cli::Article:0xab84980> (NoMethodError)
from /usr/lib/ruby/2.0.0/erb.rb:849:in `eval'
from /usr/lib/ruby/2.0.0/erb.rb:849:in `result'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:116:in `block in template'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `call'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `render'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `block (2 levels) in invoke!'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `open'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `block in invoke!'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:116:in `call'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:116:in `invoke_with_conflict_check'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:60:in `invoke!'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:25:in `create_file'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:115:in `template'
from /home/siefke/.gem/ruby/2.0.0/gems/middleman-blog-3.5.3/lib/middleman-blog/commands/article.rb:51:in `article'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /home/siefke/.gem/ruby/2.0.0/gems/middleman-core-3.4.1/lib/middleman-core/cli.rb:72:in `method_missing'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:29:in `run'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:126:in `run'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /home/siefke/.gem/ruby/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /home/siefke/.gem/ruby/2.0.0/gems/middleman-core-3.4.1/lib/middleman-core/cli.rb:20:in `start'
from /home/siefke/.gem/ruby/2.0.0/gems/middleman-core-3.4.1/bin/middleman:18:in `<top (required)>'
from /home/siefke/.gem/ruby/2.0.0/bin/middleman:23:in `load'
from /home/siefke/.gem/ruby/2.0.0/bin/middleman:23:in `<main>'
But which file middleman not like? Only in post.erb is <% wrap_layout :layout do %> find. I understand so that the layouts folder only used to build the page. Right? Wrong? Whereis the mistake.
Thank you for help & Nice Day
Silvio