Nested Attributesã¨Nested Model Formsã使ã£ã¦è¦ªåãªãã¸ã§ã¯ããä¸æ¬ã§ç»é²/å¤æ´ããã«ã¯ Railsã§ã¯ã親åæ§é ã®ãªãã¸ã§ã¯ãã®ãã©ã¡ã¼ã¿ãä¸åã®ãªã¯ã¨ã¹ãã§éãã親ãªãã¸ã§ã¯ããéãã¦åãªãã¸ã§ã¯ãã®CRUDãåæã«è¡ããããã¨ãç°¡åã«ã§ãã¾ããã§ãããRails2.3ã§ã¯ããããç°¡åã«è¡ããNested Attributesã¨Nested Model Formsã®æ©è½ãå ¥ãã¾ããã ã¾ããã¢ãã«ã¯ã©ã¹å´ã§ã¯ã以ä¸ã®ããã« accept_nested_attributes_for ãè¨è¿°ãã¾ãã # æçã¬ã·ãã¯ã©ã¹ class CookingRecipe ããã¨ããã®è¦ªã¢ãã«ã¯ã©ã¹ï¼ä¸è¨ã®ä¾ã§ã¯CookingRecipeï¼ã®ãªãã¸ã§ã¯ãã«ã¯ãingredientsã®ããã®ãã¼ã¿ãå±æ§ã®ä¸ç¨®ã¨ãã¦ããã·ã¥ã§æ¸¡ããã¨ãã§ããããã«ãªãã¾ããã
{{#tags}}- {{label}}
{{/tags}}