Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はレーキタスクで使用したい独自のクラスを持っています。このクラスでファイルをどこに置くか?
クラスが rake タスクによってのみ使用される場合は、それらを に保持します。lib/構成によってディレクトリをロードしていることを確認してくださいautoload_paths。
lib/
autoload_paths
# application.rb config.autoload_paths += %W(#{config.root}/lib)