jeudi 18 février 2016

Error: wrong number of arguments (1 for 0)

I 'm using on console

User.all(:order => "created_at ASC")

by replacing Client with my Model User from Rubyonrails.org

but its giving me this error:

ArgumentError: wrong number of arguments (1 for 0) 

What's wrong with it?

Aucun commentaire:

Enregistrer un commentaire