I have this statement in my application
User.all(:conditions => "status <> 3", :order => "firstname, lastname").collect{|x| [x.name, x.id.to_s]}
where I am trying to find all the users and sort them by first name and last name.
When I try using this statement it gives me the error
wrong number of arguments (given 1, expected 0).
Can anyone please help me with this?
codedef user_options options = User.all(:conditions => "status <> 3", :order => "firstname, lastname").collect{|x| [x.name, x.id.to_s]} endoptions = User.all(:conditions => "status <> 3", :order => "firstname, lastname").collect{|x| [x.name, x.id.to_s]}