S
S
soface2016-09-08 16:08:48
Ruby on Rails
soface, 2016-09-08 16:08:48

Why does it say cannot load such file?

I create my gem according to the instructions described here: guides.rubygems.org/make-your-own-gem
everything is created perfectly, it works fine in irb, as soon as I try to use this gem in rails it writes

cannot load such file -- hola

controller code:
require 'hola'

class TestsController < ApplicationController
  def index
  	Hola.hi
  end
end

in which direction to look at least?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Chronic 86, 2016-09-09
@chronic86

Try downloading via
require_relative '../../file'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question