0
我只安裝傾斜:傾斜模板引擎初始化
gem list
tilt (1.2.2)
ruby -v
ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]
我只是嘗試tilt.rb
require 'rubygems'
require 'haml'
require 'tilt'
template = Tilt::HamlTemplate.new('haml/about.haml')
從https://github.com/rtomayko/tilt
基本的例子,它拋出:
./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
A你有想法嗎? 謝謝!