I playing with using ERB in IronRuby and having a little problem. The
code below works fine with Ruby:

require 'erb'
puts ERB.new('hello world').result

but in IronRuby I get this error:

IronRuby.Libraries:0:in `require': no such file to load -- erb
(LoadError)
        from :0

Now if I change the require to this it works:

require 'C:\ruby\lib\ruby\1.8\erb.rb'
puts ERB.new('hello world').result

I assume my IronRuby config is wrong but how do I fix it?
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to