I am encountering a strange problem where I am getting an exception in one of my controllers where the line is essentially:
@model = Model.new(params[:model])
I get the following exception:
A ArgumentError occurred in model#model_create:
wrong number of arguments (1 for 0)
which is pretty strange because it only occurs sometimes, and I cannot reproduce it in development, just production.
I use an Apache 2.2.2 system with a pack of mongrels behind it.
ruby 1.8.4 (2005-12-24) [x86_64-linux]
These are the versions of my gems:
activerecord (1.14.4, 1.14.3)
rails (1.1.6, 1.1.5, 1.1.4)
actionpack (1.12.5, 1.12.4, 1.12.3)
I have tried it on my development machine (OS X) with Mongrel, but I cannot get it to reproduce. Just on my production machine