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.
我想从 .txt 文件中读取文件内容,并且需要将这些内容存储在数据库中。这需要cms页面。我想在运行种子文件时加载 cms 页面。任何一个请..
File.read("PATH_TO_FILE")
然后像往常一样写入db。