wrong number of arguments (0 for 1)

Hi,

When I am trying to update customer's details (or even when trying to
create a new customer) I get this error:

ArgumentError in Admin/customerController#create
wrong number of arguments (0 for 1)
app/controllers/admin/customer_controller.rb:29:in `password'
app/controllers/admin/customer_controller.rb:29:in `create'

My customer.rb class has:

I suspect the problem is that you've called your setter method password instead of password=, which will cause problems when rails tries to read the password (eg when displaying the form).

Fred

I suspect the problem is that you've called your setter method
password instead of password=, which will cause problems when rails
tries to read the password (eg when displaying the form).

Thanks Fred. You are right and it is fixed.
Cheers,
Elle