现在我有了: command: curl -sL https://deb.nodesource.com/setup | sudo bash -[WARNING]: Consider using get_url or uri module rather than running curl
fatal: [127.0.0.1]: FAILED
我的模型中有逻辑,我认为最好适合服务类。它从API中获取电影列表。理想情况下,我希望这个服务类也这样做,并为数据库添加种子。目前,我在Movie.create_all_from_api文件中调用seeds.rb。我对Rails很陌生,所以我想知道把这个服务类放在哪里,应该在哪里调用该服务。) end
def self.retri