RS
Size: a a a
RS
PT
PT
PT
PT
RS
PT
PT
PT
X-PRESERVE-REFERER=TRUE
document.referrer
DO
NameError: uninitialized constant Comment::SizeValidator2.
validates :attachment, size: true, maximum: 10.megabytes, message: 'should be less than 10MB'
ArgumentError: Either :with or :without must be supplied (but not both)
validates :attachment, format: true, with: /\.(jpg|png)\Z/i, message: 'should be jpg or png'
FY
posts = Post.where('1=1')
.where(status: 'published')
.where(published_at: 2.days.ago..Time.now)
where('1=1')
заменить на что-то другое? может встроенное в AR?FY
DO
validates_
они работали но тогда не пускал rubocopAO
FY
FY
AO