Rails console crashes with error : wrong number of arguments (given 0, expected 2) (ArgumentError)
<p>i am using ruby version 2.3.1 and rails version 5.0.0</p>

<p>When i try to run rails console and i get error as follows</p>

<pre><code>/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:49:in `initialize': wrong number of arguments (given 0, expected 2) (ArgumentError)
</code></pre>

<p>Can you please suggest any solution to get rid of this error as i cannot run rails console.</p>

<p>Full error trace is </p>

<pre><code>rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_controller/test_case.rb:49:in `initialize': wrong number of arguments (given 0, expected 2) (ArgumentError)
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/draper-2.1.0/lib/draper/view_context/build_strategy.rb:41:in `new'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/draper-2.1.0/lib/draper/view_context/build_strategy.rb:41:in `block in controller'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/draper-2.1.0/lib/draper/view_context/build_strategy.rb:40:in `tap'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/draper-2.1.0/lib/draper/view_context/build_strategy.rb:40:in `controller'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/draper-2.1.0/lib/draper/view_context/build_strategy.rb:30:in `call'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/draper-2.1.0/lib/draper/view_context.rb:49:in `build'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/draper-2.1.0/lib/draper/railtie.rb:63:in `block in &lt;class:Railtie&gt;'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/railtie.rb:226:in `block in run_console_blocks'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/railtie.rb:247:in `each'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/railtie.rb:247:in `each_registered_block'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/railtie.rb:226:in `run_console_blocks'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/application.rb:463:in `block in run_console_blocks'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/engine/railties.rb:13:in `each'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/engine/railties.rb:13:in `each'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/application.rb:463:in `run_console_blocks'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/engine.rb:442:in `load_console'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/commands/console.rb:34:in `initialize'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/commands/console_helper.rb:9:in `new'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/commands/console_helper.rb:9:in `start'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:78:in `console'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
    from /Users/bilkhan/.rvm/gems/ruby-2.3.1/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `&lt;top (required)&gt;'
    from bin/rails:4:in `require'
    from bin/rails:4:in `&lt;main&gt;'
</code></pre>