💻 Bài tập: Blog với comments
Blog với comments
Lập trình

Mô tả: Tạo models với associations

Tạo: 1. User model (name, email, password) 2. Post model (title, body, published, user_id) 3. Comment model (body, user_id, post_id) 4. Associations và validations 5. Scopes và queries

Thông tin bài tập

Khóa học: Ruby on Rails Toàn tập

Bài học: ActiveRecord và Migrations

Loại bài tập: Lập trình

Độ khó: Trung cấp

Thời lượng: 80 phút