ãããããªã¬ã¼ã·ã§ã³ã«ã¤ãã¦ã belongs_to, has_one, has_manyã®åºæ¬ ä»æ¥èªãã ç¯å²ã§ã¯ç¹ã«æ°ãããã¨ã¯ãªãã£ãã has_and_belongs_to_many has_and_belongs_to_many(habtm)ã¯å©ç¨ã·ã¼ã³ããããéããã¦ãã¦ãè¦ãã¦ãã¦ãããã¾ã使ããªãããããªãããªã¼ã¨ããæ°ããããçµåãã¼ãã«ãä½ã£ãããããã«æ å ±ãããããä»å ããããªããããªã¬ã¼ã·ã§ã³ã®çæ¹ãæ¤ç´¢ãã¦ããããããçæ¹ãfindãããããªæã¯ãçµåãã¼ãã«ã«æ¤ç´¢æ å ±ã®åãä»å ãã¦ãããæ¹ãã¯ã¨ãªã®çºè¡åæ°ãå°ãªããªãããåæ§ã«has_many :hoge, :through => :hogehgoeãããã¾ã使ãã©ããããªãæ°ãããã ãã®è©±é¡ã«é¢ãã¦ã¯ããªããããããã¦ããæä¸ãªã®ã§ããããããå°ãæãä¸ãã¦æ¸ãããã¨æãã¾ãã ã¢ã½ã·ã¨ã¼ã·ã§ã³ã®æ¡å¼µ ã¢ã½
{{#tags}}- {{label}}
{{/tags}}