简体   繁体   中英

rails console - cannot load custom_require.rb

I have a problem when starting rails console:

Loading development environment (Rails 4.1.1)
cannot load such file -- rubygems/custom_require.rb

Console is running, except that I cannot require any gem. Require in application is okay. I would like to test in console with any of gems, do you now what is the problem?

Ruby version

ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]

Thanks.

What version of ruby are you using? Trying requiring a gem with relative require on the file.

require_relative 'gem_name'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM