خرید بک لینک

Vote count: 0

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.

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 11 ارديبهشت 1395 ساعت: 19:28

صفحه بندی