醒脑
and or operator in validates_presence_of of a Ruby on Rails model
I have an entry.rb model and I\'m trying to make a semi-complicated validation. I want it to require one or more of the following fields: phone, phone2, mobile, fax, email or website. How would you wr[详细]
2022-12-22 20:26 分类:问答