Rails first or initialize by one value, but add more values if created

后端 未结 0 456
伪装坚强ぢ
伪装坚强ぢ 2021-02-11 20:20

Take the following for example:

GroupMember.where(:member_id => 4).first_or_initialize

What if I wanted to say something like this-

If Gr

相关标签:
回答
  • 消灭零回复
提交回复
热议问题