ruby LoadError: cannot load such file

前端 未结 5 1891
抹茶落季
抹茶落季 2020-12-15 05:54

When I require a file, for example (called st.rb):

require \'rubygems\'
require \'mongrel\'

class TestHandler < Mongrel::HttpHandler

  def process(reque         


        
5条回答
  •  借酒劲吻你
    2020-12-15 06:00

    For security & other reasons, ruby does not by default include the current directory in the load_path. You may want to check this for more details - Why does Ruby 1.9.2 remove "." from LOAD_PATH, and what's the alternative?

提交回复
热议问题