1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Getting Started Guide: post.rb -> Post

This commit is contained in:
Francis Go 2013-09-26 19:46:35 +10:00
parent a6e1a73ffd
commit ead0c9a7e5

View file

@ -1338,7 +1338,7 @@ class Comment < ActiveRecord::Base
end
```
This is very similar to the `post.rb` model that you saw earlier. The difference
This is very similar to the `Post` model that you saw earlier. The difference
is the line `belongs_to :post`, which sets up an Active Record _association_.
You'll learn a little about associations in the next section of this guide.