I have some code logic which is written in javascript. I am new to ruby and I would like to write the same logic in Ruby. Here is the logic
var accountsToBlock = allExceedersArray.filter(accountId => !blockedExceedersArray.includes(accountId));
Try something like this
accounts_to_block = all_exceeders_array.select do |account_id|
!blocked_exceeders_array.include?(account_id)
end