session[:sim_id] AND :created_-6ren">
gpt4 book ai didi

ruby-on-rails - Rails语法错误

转载 作者:行者123 更新时间:2023-12-03 08:14:07 25 4
gpt4 key购买 nike

错误在哪里,我看不到:

news = News.find(:all, :conditions => [":simulation_id => session[:sim_id] AND :created_at > session[:last_login]"])

最佳答案

尝试这个:

news = News.find(:all, :conditions => ["simulation_id = ? AND created_at > ?", session[:sim_id], session[:last_login]])

关于ruby-on-rails - Rails语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/888249/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com