lib/ ├ assets/ ├ tasks/ └ test.rb <-Add
test.rb
class Test
def aa
puts "aa"
end
end
environment.rb
# Load the Rails application.
require_relative 'application'
require 'test' #Add this
# Initialize the Rails application.
Rails.application.initialize!
% rails c
Running via Spring preloader in process 62643
Loading development environment (Rails 6.0.3.2)
[1] pry(main)> Test
=> Test
that's all
Recommended Posts