我在添加has_many和belongs_to时遇到问题,我的代码就是这样。 模型/ blog_post.rb class User < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :
我想编写一个简单的聊天机器人,但我有一个问题,我的SQL查询 SELECT `msg_id`,`msg` FROM `chatbot_msg`
WHERE `msg_id` in (
SELECT `msg_id` FROM `chatbot_msgtags`
WHERE `tag_id` in (
SELECT `tag_id` FROM `chatbot_tags