ActiveRecordã¯ï¼Rubyã®åçãªæ§è³ªãååã«ä½¿ã£ã¦ä½ãããï¼é常ã«å©ä¾¿æ§ã®é«ãã©ã¤ãã©ãªã ã¨æããActiveRecordãJavaã«ã³ãã¼ãããã¨ã¯ï¼ãã£ã¨ã§ããªãã ããããããï¼æã«åå¿è (ä»ã®å)ã¯ï¼ãã®åçãªç¹å¾´æ ã«ï¼æå¾ ããéãã®åãã«ãªããã«è¦æ¦ãããã¨ãå¤ãã ActiveRecordã使ãã°ï¼ã¢ãã«éã®é¢é£ã¨ããã«é¢ããæä½ãæ°è¡ã§å®ç¾©ãããã¨ãã§ãããä¾ãã°ï¼é¨ç½²ã表ãDivisionã¢ãã«ã¨ï¼é¨ç½²ã«æå±ãã社å¡ã表ãEmployeeã¢ãã«ããã£ãå ´åï¼ class Division < ActiveRecord::Base has_many :employees end class Employee < ActiveRecord::Base belongs_to :division end ã¨ãã¦ãããã°ï¼ div = Division.find(1) di
{{#tags}}- {{label}}
{{/tags}}