我只是安装倾斜:
gem list
tilt (1.2.2)
ruby -v
ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]
我只是尝试来自https://github.com/rtomayko/tilt的基本示例
倾斜.rb
require 'rubygems'
require 'haml'
require 'tilt'
template = Tilt::HamlTemplate.new('haml/about.haml')
它抛出:
./tilt.rb:4: uninitialized constant Tilt (NameError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
from tilt.rb:3
任何想法 ?谢谢!