最近搜索
没有最近搜索

Simon Bettison
已加入2021年10月22日
·
最后活动2021年10月22日
关注
0
关注者
0
活动总数
2
投票
0
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Simon Bettison
Simon Bettison 进行了评论,
社区评论 Feedback - Help Center (Guide)
ALTER TABLE articles ADD COLUMN ptr int;
Then add a field on edit article page that lets you point to a different article, and update render code to check it...
def render_article(id)
article = Article.find(id)
return render_article(article.ptr) if article.ptr.present?
//renders article
end
it's a hack, but it buys 8 years of good will back whilst you work on a proper solution?
*shrugs*
查看评论 · 已于 2020年12月16日 发布 · Simon Bettison
0
关注者
2
投票
0
评论