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)