บันทึกไว้ก่อนจะลืมเสียเอง
Creat
Read ประกอบไปด้วยสองaction คือ ติดต่อโมเดลเพื่อดึงข้อมูลออกมาlist แล้วนำไปshow
Update
Delete
เช่นใน SubjectsController
def list
@subjects = subject.all
end
โดย Subjects Controller จะไปวิ่งไปหา View ที่ชื่อว่า list ว่าต้องการให้เอาข้อมูลที่ได้ไปแสดงผลอย่างไร
def show
end
I think you should be CRUDE (Create, Read, Update, Delete and Evaluate the result).
Evaluation or reflection should be a part of progress!