ã©ã¯ã¹ã«ã§ãµã¼ããµã¤ãã¨ã³ã¸ãã¢ããã£ã¦ããå°æã§ãã æè¿ã®æ¥åã§ã¯ã主㫠Ruby ãæ¸ãã¦ãã¾ãã ãã¦ãRuby ã®çµã¿è¾¼ã¿ã©ã¤ãã©ãªã«ã¯ãããããªä¾¿å©ã¡ã½ãããããã¾ããã ã¿ãªããæ¨ãã¡ã½ããã¯ããã¾ããï¼ å人çæ¨ãã¡ã½ãã㯠Array#zip 㨠Hash#transform_values ã§ãã Hash#transform_values ã«ã¤ãã¦å°ãç´¹ä»ããã¨ã ãã¨ã㨠Rails4.2 ã® ActiveSupport ã§å®è£ ããã Ruby2.4 ã§çµã¿è¾¼ã¿ã©ã¤ãã©ãªã«ç§»æ¤ããã¾ããã 移æ¤ã®éã¯ãååãã©ããããã¨ããè°è«ã§ã¨ã¦ãçãä¸ãã£ãããã§ãã ã¾ããRuby2.5 ããã¯å§å¦¹ã¡ã½ããã¨ãè¨ãã Hash#transform_keys ãå®è£ ããã¾ããã Hash#transform_values ã®è©±ã¯ãã®è¾ºã«ãã¦ãä»å㯠Array#zip ã®æ¨ãã
{{#tags}}- {{label}}
{{/tags}}