Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
202いいね 8,797 views回再生

Rails 6 API Tutorial - Model Associations p.11

In this video series we will build a Rails API from scratch. Backend APIs are useful for serving data to frontend applications, mobile apps or other backend services.

✨ Check out the new version of this video series, which has been updated for Rails 7    • Rails 7 API Tutorial - Create project and ...  

📖 You can also purchase the eBook and code for the new Rails 7 tutorial - https://tomkadwill.gumroad.com/l/rail...

This video covers:
0:05 - What are Rails associations?
1:15 - Create Author model
2:05 - Create association between the Author and Book models
4:24 - Remove 'author' string field from Book
5:54 - Add 'has_many' to Author and 'belongs_to' to Book
6:33 - Remove old author length validation
6:48 - Test everything out in the Rails console

If you’re new to this series, you may want to start with part 1:    • Rails 6 API Tutorial - Create project and ...  

コメント