mazixon mazixon - 4 years ago 329
Ruby Question

Rails: ArgumentError in UsersController#create wrong number of arguments (2 for 1)

I generated scaffold

with attributes
. After fulfilling the form in the browser and hitting
Create User
, following error occurs:

Any clue about what might have gone wrong?

Answer Source

This happens when using an older version of turbolinks gem. Try updating the gem to the latest version.

Add the following to your Gemfile:

gem 'turbolinks', '~> 2.5.3'

Then, do:

bundle install

Then, restart the rails server and try again!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download