ROR lấy list array

Ngoc Vu
Answered Mar 2nd, 2018 9:19 a.m.
bạn thử @reviews = Review.all.map{|review| review.as_json.merge!(email: "test")} xem. như vậy nó sẽ là 1 mảng của các hash nên nó k còn là 1 object review nữa
0
Organizations
Have no organizations yet.