Ruby zapytanie pluck

Przykłady kodu

0
0

ruby uszczypnąć

Use #pluck as a shortcut to select one or more attributes without loading a bunch
of records just to grab the attributes you want.
Use:
	Person.pluck(:name)
intead of:
	Person.all.map(&:name)

W innych językach

Ta strona jest w innych językach

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................