# \`bundle exec rails server\` מעלה \`Job exception: wrong number of arguments (given 4, expected 3)\` עם Ruby 3.0.2

**URL:** <https://meta.discourse.org/t/bundle-exec-rails-server-raises-job-exception-wrong-number-of-arguments-given-4-expected-3-with-ruby-3-0-2/204105>\
**Category:** Development\
**Created:** [21 בספטמבר,‏ 2021,‏ 2:13pm UTC](https://meta.discourse.org/t/bundle-exec-rails-server-raises-job-exception-wrong-number-of-arguments-given-4-expected-3-with-ruby-3-0-2/204105 "2021-09-21T14:13:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![yahonda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yahonda/32/234118_2.png) [@yahonda](https://meta.discourse.org/u/yahonda)\
**Post date:** [21 בספטמבר,‏ 2021,‏ 11:09pm UTC](https://meta.discourse.org/t/bundle-exec-rails-server-raises-job-exception-wrong-number-of-arguments-given-4-expected-3-with-ruby-3-0-2/204105/2 "2021-09-21T23:09:24Z")

</div>

A workaround should be like adding \*\* to the last hash as follows.

```plaintext
irb(main):001:1* def zrange(key, start, stop, withscores: false, with_scores: withscores)
irb(main):002:0> end
=> :zrange
irb(main):003:0> zrange("default:_scheduler_queue_default_", 0, 0, {:withscores=>true})
(irb):1:in `zrange': wrong number of arguments (given 4, expected 3) (ArgumentError)
	from (irb):3:in `<main>'
	from /Users/yahonda/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/irb-1.3.7/exe/irb:11:in `<top (required)>'
	from /Users/yahonda/.rbenv/versions/3.0.2/bin/irb:23:in `load'
	from /Users/yahonda/.rbenv/versions/3.0.2/bin/irb:23:in `<main>'
irb(main):004:0> zrange("default:_scheduler_queue_default_", 0, 0, **{:withscores=>true})
=> nil
irb(main):005:0>

```

---

_[View the full topic](https://meta.discourse.org/t/bundle-exec-rails-server-raises-job-exception-wrong-number-of-arguments-given-4-expected-3-with-ruby-3-0-2/204105)._
