Last active
December 22, 2015 07:20
-
-
Save jodosha/9662268 to your computer and use it in GitHub Desktop.
Tilt Erubis dependency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/setup' | |
require 'erb' | |
require 'tilt' | |
Tilt.new 'template.erb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'tilt', '~> 2.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ruby example.rb | |
/Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/erubis.rb:2:in `require': cannot load such file -- erubis (LoadError) | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/erubis.rb:2:in `<top (required)>' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/mapping.rb:259:in `const_defined?' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/mapping.rb:259:in `block in constant_defined?' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/mapping.rb:258:in `each' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/mapping.rb:258:in `inject' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/mapping.rb:258:in `constant_defined?' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/mapping.rb:224:in `block in lazy_load' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/mapping.rb:223:in `each' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/mapping.rb:223:in `lazy_load' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/mapping.rb:214:in `lookup' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/mapping.rb:152:in `[]' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt/mapping.rb:135:in `new' | |
from /Users/luca/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/tilt-2.0.0/lib/tilt.rb:43:in `new' | |
from example.rb:5:in `<main>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Hello, World!</h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had the same problem. I solve it by changing
require tilt
torequire tilt/erb