In Rails Project, I am trying to set few columns of table in select statement for mongodb but I am not able to find those values.
Model - User
Columns :- _id, name, age, address, city, ...
scope :only_name, select("id, name")
But giving error for User.only_name
wrong argument type String (expected Array)
Please suggest something.
