Skip to content

Instantly share code, notes, and snippets.

@nerdinand
Last active July 31, 2017 11:59
Show Gist options
  • Save nerdinand/080ebe782ac18bf03d4111e6344e5072 to your computer and use it in GitHub Desktop.
Save nerdinand/080ebe782ac18bf03d4111e6344e5072 to your computer and use it in GitHub Desktop.
undefined local variable or method `haml_buffer' when using haml templates
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.1)
public_suffix (~> 2.0, >= 2.0.2)
capybara (2.14.4)
addressable
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
concurrent-ruby (1.0.5)
dotenv (2.2.1)
dry-configurable (0.7.0)
concurrent-ruby (~> 1.0)
dry-container (0.6.0)
concurrent-ruby (~> 1.0)
dry-configurable (~> 0.1, >= 0.1.3)
dry-core (0.3.1)
concurrent-ruby (~> 1.0)
dry-equalizer (0.2.0)
dry-initializer (1.4.1)
dry-logic (0.4.1)
dry-container (~> 0.2, >= 0.2.6)
dry-core (~> 0.2)
dry-equalizer (~> 0.2)
dry-struct (0.3.1)
dry-configurable (~> 0.1)
dry-core (~> 0.3)
dry-equalizer (~> 0.2)
dry-types (~> 0.9, >= 0.9.0)
ice_nine (~> 0.11)
dry-types (0.11.0)
concurrent-ruby (~> 1.0)
dry-configurable (~> 0.1)
dry-container (~> 0.3)
dry-core (~> 0.2, >= 0.2.1)
dry-equalizer (~> 0.2)
dry-logic (~> 0.4, >= 0.4.0)
inflecto (~> 0.0.0, >= 0.0.2)
dry-validation (0.11.0)
concurrent-ruby (~> 1.0)
dry-configurable (~> 0.1, >= 0.1.3)
dry-core (~> 0.2, >= 0.2.1)
dry-equalizer (~> 0.2)
dry-logic (~> 0.4, >= 0.4.0)
dry-types (~> 0.11.0)
haml (5.0.1)
temple (>= 0.8.0)
tilt
hanami (1.0.0)
bundler (~> 1.13)
concurrent-ruby (~> 1.0)
hanami-assets (~> 1.0)
hanami-controller (~> 1.0)
hanami-helpers (~> 1.0)
hanami-mailer (~> 1.0)
hanami-router (~> 1.0)
hanami-utils (~> 1.0)
hanami-validations (~> 1.0)
hanami-view (~> 1.0)
thor (~> 0.19)
hanami-assets (1.0.0)
hanami-helpers (~> 1.0)
hanami-utils (~> 1.0)
tilt (~> 2.0, >= 2.0.2)
hanami-controller (1.0.1)
hanami-utils (~> 1.0)
rack (~> 2.0)
hanami-helpers (1.0.0)
hanami-utils (~> 1.0)
hanami-mailer (1.0.0)
hanami-utils (~> 1.0)
mail (~> 2.5)
tilt (~> 2.0, >= 2.0.1)
hanami-model (1.0.1)
concurrent-ruby (~> 1.0)
dry-types (~> 0.10)
hanami-utils (~> 1.0)
rom-repository (~> 1.3)
rom-sql (~> 1.3)
hanami-router (1.0.1)
hanami-utils (~> 1.0)
http_router (= 0.11.2)
rack (~> 2.0)
hanami-utils (1.0.2)
transproc (~> 1.0)
hanami-validations (1.0.0)
dry-validation (~> 0.10)
hanami-utils (~> 1.0)
hanami-view (1.0.0)
hanami-utils (~> 1.0)
tilt (~> 2.0, >= 2.0.1)
http_router (0.11.2)
rack (>= 1.0.0)
url_mount (~> 0.2.1)
ice_nine (0.11.2)
inflecto (0.0.2)
mail (2.6.6)
mime-types (>= 1.16, < 4)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.2.0)
minitest (5.10.3)
nokogiri (1.8.0)
mini_portile2 (~> 2.2.0)
public_suffix (2.0.5)
rack (2.0.3)
rack-test (0.7.0)
rack (>= 1.0, < 3)
rake (12.0.0)
rom (3.3.1)
concurrent-ruby (~> 1.0)
dry-core (~> 0.3)
dry-equalizer (~> 0.2)
dry-initializer (~> 1.3)
dry-types (~> 0.9, >= 0.9.4)
rom-mapper (~> 0.5, >= 0.5.1)
rom-mapper (0.5.1)
dry-core (~> 0.2, >= 0.2.3)
dry-equalizer (~> 0.2)
transproc (~> 1.0)
rom-repository (1.4.0)
dry-core (~> 0.3, >= 0.3.1)
dry-struct (~> 0.3)
rom (~> 3.3)
rom-mapper (~> 0.5)
rom-sql (1.3.3)
dry-core (~> 0.3)
dry-equalizer (~> 0.2)
dry-types (~> 0.10, >= 0.10.2)
rom (~> 3.2, >= 3.2.2)
sequel (~> 4.43)
sequel (4.48.0)
shotgun (0.9.2)
rack (>= 1.0)
sqlite3 (1.3.13)
temple (0.8.0)
thor (0.19.4)
tilt (2.0.8)
transproc (1.0.2)
url_mount (0.2.1)
rack
xpath (2.1.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
capybara
dotenv (~> 2.0)
haml
hanami (~> 1.0)
hanami-model (~> 1.0)
minitest
rake
shotgun
sqlite3
BUNDLED WITH
1.15.3
Boot Error
Something went wrong while loading /Users/ferdi/projects/bookshelf/config.ru
NameError: undefined local variable or method `haml_buffer' for #<Hanami::View::Rendering::Scope:0x007fce92eaab38> Did you mean? with_haml_buffer
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-view-1.0.0/lib/hanami/view/rendering/layout_scope.rb:221:in `method_missing'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-view-1.0.0/lib/hanami/view/rendering/scope.rb:73:in `method_missing'
/Users/ferdi/projects/bookshelf/apps/web/templates/books/new.html.haml:1:in `block in singleton class'
/Users/ferdi/projects/bookshelf/apps/web/templates/books/new.html.haml:-2:in `instance_eval'
/Users/ferdi/projects/bookshelf/apps/web/templates/books/new.html.haml:-2:in `singleton class'
/Users/ferdi/projects/bookshelf/apps/web/templates/books/new.html.haml:-5:in `__tilt_70262562814680'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/tilt-2.0.8/lib/tilt/template.rb:170:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/tilt-2.0.8/lib/tilt/template.rb:170:in `evaluate'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/tilt-2.0.8/lib/tilt/haml.rb:24:in `evaluate'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/tilt-2.0.8/lib/tilt/template.rb:109:in `render'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-view-1.0.0/lib/hanami/view/template.rb:41:in `render'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-view-1.0.0/lib/hanami/view/rendering.rb:139:in `rendered'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-view-1.0.0/lib/hanami/view/rendering.rb:153:in `layout'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-view-1.0.0/lib/hanami/view/rendering.rb:107:in `render'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-view-1.0.0/lib/hanami/view/rendering.rb:258:in `render'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-1.0.0/lib/hanami/rendering_policy.rb:56:in `_render_action'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-1.0.0/lib/hanami/rendering_policy.rb:48:in `_render'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-1.0.0/lib/hanami/rendering_policy.rb:38:in `render'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-1.0.0/lib/hanami/application.rb:169:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/delegate.rb:83:in `method_missing'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/http_router-0.11.2/lib/http_router.rb:193:in `process_destination_path'
(eval):15:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/http_router-0.11.2/lib/http_router.rb:288:in `raw_call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-router-1.0.1/lib/hanami/routing/http_router.rb:156:in `raw_call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/http_router-0.11.2/lib/http_router.rb:142:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-router-1.0.1/lib/hanami/router.rb:1019:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rack-2.0.3/lib/rack/method_override.rb:22:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-1.0.0/lib/hanami/assets/static.rb:49:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rack-2.0.3/lib/rack/content_length.rb:15:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rack-2.0.3/lib/rack/common_logger.rb:33:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:153:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-1.0.0/lib/hanami/app.rb:42:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:86:in `proceed_as_child'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:31:in `call!'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/shotgun-0.9.2/lib/shotgun/loader.rb:18:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/hanami-1.0.0/lib/hanami/assets/static.rb:49:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rack-2.0.3/lib/rack/lint.rb:49:in `_call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rack-2.0.3/lib/rack/lint.rb:37:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rack-2.0.3/lib/rack/show_exceptions.rb:23:in `call'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rack-2.0.3/lib/rack/handler/webrick.rb:86:in `service'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
/Users/ferdi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment