vedeu icon indicating copy to clipboard operation
vedeu copied to clipboard

DSL Menu example is broken

Open gavinlaking opened this issue 9 years ago • 2 comments

vedeu/lib/vedeu/menus/menu.rb:97:in `items': undefined method `each_with_index' for nil:NilClass (NoMethodError)
    from /home/gavinlaking/Source/vedeu/lib/vedeu/menus/menu.rb:119:in `view'

Please run the examples before making releases in future Gav, as these kinds of bugs make you look like a twit.

Gav

gavinlaking avatar Feb 18 '16 23:02 gavinlaking

I was just about to file an issue about this ;) Good to see you've already encountered it, though!

dymk avatar Feb 19 '16 23:02 dymk

error]    undefined method `data' for [nil]:Array
/Users/petermckinney/workspace/vedeu/examples/dsl_menus.rb:219:in `block (2 levels) in show'
/Users/petermckinney/workspace/vedeu/lib/vedeu/repositories/model.rb:40:in `instance_eval'
/Users/petermckinney/workspace/vedeu/lib/vedeu/repositories/model.rb:40:in `build'
/Users/petermckinney/workspace/vedeu/lib/vedeu/dsl/view.rb:62:in `view'
/Users/petermckinney/workspace/vedeu/examples/dsl_menus.rb:218:in `block in show'
/Users/petermckinney/workspace/vedeu/lib/vedeu/repositories/model.rb:40:in `instance_eval'
/Users/petermckinney/workspace/vedeu/lib/vedeu/repositories/model.rb:40:in `build'
/Users/petermckinney/workspace/vedeu/lib/vedeu/dsl/views.rb:151:in `composition'
/Users/petermckinney/workspace/vedeu/lib/vedeu/dsl/views.rb:105:in `renders'
/Users/petermckinney/workspace/vedeu/examples/dsl_menus.rb:217:in `show'
/Users/petermckinney/workspace/vedeu/examples/dsl_menus.rb:91:in `block in initialize'

Still seeing errors in this example

pmck91 avatar Apr 25 '17 13:04 pmck91