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.
如何在 Rails 控制台中使用 permalink_fu 更新列 permalink null?
假设我有一篇 table_name 文章,列是标题和永久链接。我只想更新空永久链接。
我解决了这个问题。
导轨 c Business.where(:permalink =>nil).each(&:save)
导轨 c
Business.where(:permalink =>nil).each(&:save)
我刚开始使用 CL,我在 Windows XP64 中使用 CCL+Slime 和 Emacs v24。我遇到以下问题:
如果我在 REPL 中输入这三个表达式,我会得到预期的结果,一个包含文本“Something”的文件:
(defparameter *file-out* (open "e:/test.txt"