Làm thế nào để hiển thị ActiveRecords nhưHiện đối tượng ActiveRecord như bảng trong ./script/console
>> Role.all
+----+-----------+-------------------------+-------------------------+
| id | name | created_at | updated_at |
+----+-----------+-------------------------+-------------------------+
| 1 | Admin | 2009-11-16 21:22:59 UTC | 2009-11-16 21:22:59 UTC |
| 2 | Moderator | 2009-11-16 21:23:06 UTC | 2009-11-16 21:23:06 UTC |
| 3 | Author | 2009-11-16 21:23:16 UTC | 2009-11-16 21:23:16 UTC |
+----+-----------+-------------------------+-------------------------+
3 rows in set
?
tôi thấy nó trong railscasts.com/episodes/189-embedded-association và http://asciicasts.com/episodes/189-embedded-association
Cảm ơn! Nó giúp – Vlad