ååã¯ãakeloså°å ¥ããã¥ã¼ããªã¢ã«ç¨ã®booklinkãã»ããã¢ããããã¦book/authorã®è¿½å ãæ´æ°ãåé¤ã¾ã§ããã¾ããããä»åã¯ãbook/authorã®é¢é£ä»ãã§ãã ãbook/authorã¢ãã«è¿½è¨ã $ cd ~/booklink/ $ vi app/models/book.php 以ä¸ã®ããã«ãªãããã«è¿½è¨ <?php class Book extends ActiveRecord { var $belongs_to = âauthorâ; // <- declaring the association } ?> $ vi app/models/author.php 以ä¸ã®ããã«ãªãããã«è¿½è¨ < ?php class Author extends ActiveRecord { var $has_many = âbooksâ; // <- declaring th
{{#tags}}- {{label}}
{{/tags}}