Intermedio
4 ottobre 2026

Trova il bug: Ruby on Rails

Uno snippet di codice. Trova il bug, o dimostra che non ce n'è.

ruby
1class NewsletterJob
2  def self.perform
3    User.where(subscribed: true).find_each(batch_size: 500) do |user|
4      UserMailer.weekly_digest(user).deliver_later
5    end
6  end
7end

Clicca sulle righe che causano il problema.

Il tuo verdetto

Un tentativo al giorno. La risposta appare subito dopo.

Mantieni la tua serie

Crea un account per conservare la tua serie e seguire i tuoi progressi.

Crea un account