Question

Essayant de créer une instance d'un modèle, j'obtiens l'erreur suivante ...

u = User.create
# or .where(...).first_or_create
# or .where(...).first_or_initialize
ArgumentError: wrong number of arguments (2 for 1)

Quelqu'un a-t-il le même problème avec Rails 3.2?

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top