I am ruby beginner. Two file is here first file attached to second file by using require. But first file does not load.
first.rb
puts "First File"
second.rb
require 'first'
puts "Second File"
I am getting error:-
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- first.rb (LoadError)
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from second.rb:2:in `<main>'
Please tell us. How to solve this problem.