jiku
jiku

Reputation: 283

Gem can be required in IRB but not by Rails

When I add

require 'soundcloud'

in Rails and start the server using

rails server

I get

...rb:9:in `require': cannot load such file -- soundcloud (LoadError)

the same yields

=> true

in IRB.

I installed Ruby, Rails, etc following http://installrails.com/.

Any ideas what could be causing this?

Upvotes: 0

Views: 75

Answers (1)

Marek Lipka
Marek Lipka

Reputation: 51151

Why don't you use Bundler?

Add to Gemfile:

gem 'soundcloud'

then run

bundle install

in the root of your project and it all should work automatically.

Upvotes: 2

Related Questions