hugalves
hugalves

Reputation: 373

How to load openssl via rails console?

I used the solution written by Radulescu to install openssl with ruby 1.9.3-p194. Then, I'm trying to require openssl, but I've got false return. Why?

bla git:(master) rails c
Loading development environment (Rails 3.2.6)
[1] pry(main)> require 'openssl'
=> false

Upvotes: 2

Views: 1006

Answers (1)

Dave S.
Dave S.

Reputation: 6419

This simply means the library has already been loaded. If you try typing OpenSSL, you'll see it's in your namespace.

By comparison, if you try to load a library that doesn't exist, you'll get an exception:

1.9.3p327 :003 > require 'does-not-exist'
LoadError: cannot load such file -- does-not-exist

Upvotes: 4

Related Questions