board has_many posts, 新造物件宣告方式是: @post = @boards.posts.build 。那如果 book has_one :author,請問要怎麼宣告? 2015-11-26 Ruby on Rails association兩種方法@author = @book.author.build @author = @book.build_author Older ❯Rails 內如何操作 session?❮ Newerafter_create 是一種 model callbacks, 請問 model 有多少種 call backs 請列出來