lib/ ├ assets/ ├ tasks/ └ test.rb <-Ajouter
test.rb
class Test
def aa
puts "aa"
end
end
environment.rb
# Load the Rails application.
require_relative 'application'
require 'test' #Ajoute ça
# 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
c'est tout
Recommended Posts