Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
ããã«ã¡ã¯ãakiinyoã§ãã ä»æ¥ã¯ç§ãã¨ã£ã¦ããä¸è©±ã«ãªã£ã¦ãããRuby on Rails ãã¥ã¼ããªã¢ã«ãããç´¹ä»ãã¾ãã ãã§ã«ãåç¥ã®æ¹ãå¤ãã¨æãã¾ããããä»ãåããã ããï¼ç¹ã«åå¦è ã®æ¹ã¸ãããããªåãçµã¿æ¹ããç´¹ä»ãããã¨æãã¾ãã Rails ãã¥ã¼ããªã¢ã« ã¨ã¯ï¼Michael Hartl (ãã¤ã±ã«ã»ãã¼ãã«) æ°ã«ãã£ã¦æ¸ããããRuby on Rails ã®ãã¥ã¼ããªã¢ã«ã§ãã åèã¯è±èªã§ãããå®å· è¦å¹³æ°ãå «ç° æä¸æ°ãä¸å¿ã«ç¿»è¨³ä½æ¥ãé²ãããã HTMLã»é»åæ¸ç±ã¨ãã«æ¥æ¬èªçãæä¾ããã¦ãã¾ãã 第1ç« ã®ã¯ããã«ãæ¬æ¸ã®ç®çã¯ãåã« Rails ãæãããã¨ã§ã¯ã§ã¯ãªããRails ã使ã£ã Web ã¢ããªã±ã¼ã·ã§ã³ã®éçºãæãããã¨ã§ãããã¨ããããã«Railsã®ç¥èã ãã§ãªãããã¼ã¸ã§ã³ç®¡çãããã¹ãé§åéçºãã¨ããéçºææ³ã¾ã§å¹ åºãã«ãã¼ããã¦ã
ãã¼ãã§ã¯ãRuby Advent Calendar 2013 ã®13æ¥ç®ã®è¨äºã§ãã 12æ¥ç®ã®è¨äºã¯ ãã¼ãã§ã¯ãRubyããæ³£ãæ³£ãåã£ãæ¨æºæ·»ä»ã©ã¤ãã©ãª ãã¼ãã§ã¯ãRuby Advent Calendar 2013(12æ¥ç®) ã§ãã ä»æ¥ã¯ãç§ããã¼ãã§ã¯ãRubyãèªãã§æã£ããã¨ãæ°ä»ãããã¨ãæ¸ãã¾ãã ãã®åã«ãããªä¸é¢ã ãã¼ãã§ã¯ãRubyã¯ãRubyã®è¨èªä»æ§ããä¸å¯§ã«æ¸ãã¦ããæ¬ãªã®ã§ãæ®æ®µä»äºã§Rubyã使ã£ã¦ããç§ã¯ãæåã®æ¹ã¯ã ãããç¥ã£ã¦ããäºãªã¯ããã¨æã£ã¦ãã¾ããã ã§ãããããçãªæ°æã¡ã§èªãã¨ããããããç¥ããªãã£ããâ¦ã¨ãããã¨ã«çµæ§åºãããã¾ãã ç§ãç¹ã«ãã¸ã¼ï¼ãã¨æã£ãã®ã¯ ãããã¯ã® doâ¦end 㨠{}ã®ã¡ããã§ããã©ã¡ãã使ã£ã¦ãåãã ãã©ãè¤æ°è¡ã«ãªãã¨ã㯠doâ¦end 1è¡ã§æ¸ããã¨ãã¯{}ã¨è¦ãã¦ãã¾ããã ã§ãçµåã®åª
å é± RubyWorld Conference ã«è¡ã£ã¦ãã¾ããã å 輩ãã¡ããèãã¦ããâç¬ç¹ã®é°å²æ°âã¨ããã®ãå³ãã£ã¦ãã¾ããããªã¼ããã³ã°ã§çç¥äºãå¸é·ã®æ¨æ¶ãããã®ãæ°é®®ã ã£ãããRubyã®ã«ã³ãã¡ã¬ã³ã¹ã§ã¹ã¼ããçã人ãã¡ããã£ã±ããããã¨ãæ°é®®ã§ããã ã¾ã¤ãã¨ããã®ã試è¡é¯èª¤ãç¹°ãè¿ããã®ã大åãã¨ã¦ãé¿ãã¾ããã失æãã¦ãã次ã¯ãã¾ããããï¼ä»åº¦ããããã¾ããããï¼ã¨ãå¼±ã£ã¦ãã¨ãã«èãããæ³£ãã¾ããã Aron ã®ãæ¸ãã¦ãããã¨ãéµåã¿ã«ããªãã§ãèªåã§ç¢ºãããããã«ã¯ããã ã£ã¨æ¥ãã (éµåã¿ã«ãã¦ãã¾ãã¿ã¤ã) é«äºããã®ããã¢ç°å¢ã®ãã¼ã¿ã¯ãæ¬çªã¨ã»ã¼åçã®ãã®ã使ã£ã¦ã¾ããã«ã¯ãããã£ã¨ãªãã¾ããã (ããããã) ããã¦mojomboã®ãã¤ã³ã¿ã¼ãããããã!!!ãã®è©±ãã¨ã¦ã楽ããã£ãã§ãï¼ å人çã«ãåç¹å帰ã¨ãããã 大å¦ã®ã¨ãããã£ãºãã¼ã©ã³ãã夢ã¨
æ³ããè¨èã«ããã¨ãã¤ãé³è â¦ãããªãã¦ãå¹¼ç¨ï¼ãã«ã¾ãã ãï¼ã«ãªã£ã¦ãã¾ãã®ã§ããä»åãæ¸ãã¾ã¼ããæã£ããã¨ãæãããã¨ãã ã¾ããå½æ¥ã¹ã¿ããã«å¿åããçç± Sapporo RubyKaigi 2012ã«å½æ¥ã¹ã¿ããã¨ãã¦åå ãã¦æ¥½ããã£ããã ã¹ã¿ããã¨ãã¦åå ããæ¹ããåå è ãã¹ãã¼ã«ã¼ã®æ¹ã«è©±ããããããã¨æã£ããã (è ¹é») ãã¤ãRubyã使ã£ã¦ä»äºããã¦ãã¦ã便å©ãªgemããããã使ã£ã¦ããã©ãèªåã¯ä½ãè²¢ç®ã§ãã¦ãªãã¨æãã¦ãããã (ããããã人ã¯å´ååã§è²¢ç®ã§ãããããã¨ã¹ã¿ããåéè¨äºã«æ¸ãã¦ãã£ãã®ã§ãã) ãããªæãã§ãã ãã¨ãRubyã³ãã¥ããã£ã«å¸°å±æèãæãããã¨ã¡ãã£ã¨æã£ãããããã¾ããã ä¼æä¸ã®3æ¥éã¯ãã ããããã¯ã¤ã¨ããã¼ã«ã®åºå ¥å£ãããã«ããã®ã§ãããããã®æ¹ã¨è©±ããã¨ãã§ãã¾ãããæåã®ç®è«è¦éããã¹ã¿ããTã·ã£ããçã¦ããªãã£ãã話ã
3æ1æ¥ã2æ¥ RailsGirlsTokyo ã«ã³ã¼ãã¨ãã¦åå ãã¦ãã¾ããã Railsã§webã¢ããªä½ã£ã¦ã¿ããï¼ã£ã¦ããåå¿è ã®å¥³ã®åãã¡ã対象ã«ããã¤ãã³ãã§ãã ãã£ã¡ã楽ãããããï¼ ãããã¯ã³ã¼ãã¨ãã¦åå ããã®ã§ãããç½ç¶ããã¨ãã¨ãããè¦ãããã«ä½ãæãã¦ãªãã£ãã§ãã NoMethodError ãåºã¦ã¦ãã人㫠typo ãææããããgemã追å ããå¾ã«ãµã¼ãã®åèµ·åãä¿ãããã ãgit init ãããã©ãªããå¤ãã¨ãã人ã¨ä¸ç·ã«æ©ãã ãã (çµå± git init ãã¦ãããã£ã¬ã¯ããªãä¸é層ä¸ã ã£ããã¨ãå¤æ) ã³ã¼ãã¨ãã¦ã¯ææªã ã£ãããããã¾ãããã @a_matsuda ããã®ã¯ã¼ã¯ã·ã§ããã¨ã笹ç°ããã®ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã®è¬ç¾©ãåãã å人çã«ã¯æé«ã«å å®ããã¤ãã³ãã§ããã ããããªããç²¾é²ãã¾ãããã ã¢ãã¿ã¼ãã¼ãã£ã§ã¯ãåå è ã®æ¹ã¨ãã£ã±ã話
10æ13æ¥ããªã©ã¯ã«éå±±ã»ã³ã¿ã¼ã§ããªãã©ã åç©«ç¥ ï½è¥æã¨ã³ã¸ãã¢ãå®ãã®ç§ï½ããéå¬ãããããªãã©ãã¯ãã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢å士ã®äº¤æµã®å ´ã¨ãã¦ãä»å¹´ã§11å¹´ç®ãè¿ãããä»åã®ã¤ãã³ãã§ã¯ãè¥æã¨ã³ã¸ãã¢ã¨æè²æ å½è ãããããã®ç«å ´ãããã¬ã¼ã³ãã¼ã·ã§ã³ãè¡ããã¨ã³ã¸ãã¢ã®æé·ã¨æè²ã«ã¤ãã¦èãããã£ããã¨ãªã£ããããã§ã¯ãæ°¸åã·ã¹ãã ããã¸ã¡ã³ãã®è¬æ¼ããã¼ã¹ã«ãå社æµã®æè²è¡ãåãä¸ãããæ°¸åã·ã¹ãã ããã¸ã¡ã³ãã¯ãã½ããã¦ã§ã¢éçºåè¨ããã¸ã§ã¯ããåºæ¬æ¥åã¨ãã¦è¡ã£ã¦ããä¼ç¤¾ã§ããã å ¥ç¤¾2å¹´ç®ã®ç°å£äºå£æ°ã¯ã社ä¼å¦é¨åºèº«ã®ãããããæ系女åãã大å¦æ代ã¯ãã¾ã£ããããã°ã©ãã³ã°ããããã¨ããªãã¨ãããããããç¾å¨ã¯1人ã®ããã°ã©ãã¨ãã¦ã¤ãã³ãã«ã¬ã³ãã¼ï¼ãã°ãªã©ãææãã¦ããããªããããã°ã©ãã®éãé¸ãã ã®ãã 彼女ã¯ããèªåã§Webã¢ããªãä½ããããããªã¨æã£ãããã
9æ14, 15, 16ã«è¡ãããæå¹Rubyä¼è°2012ã«è¡ã£ã¦æ¥ã¾ããã ååæµ·éï¼ ã³ã¼ãæ¸ãã®ãã ãããã£ã¦è¨ã£ã¦ã人ããã£ã±ããã¦ãã®ãããåºæ¿ãåãã¦ãã¾ããã 1ã¤1ã¤ã®ã³ã¼ãããã£ã¨å¤§åã«ãããã¨æã£ããèªåãæãå ¥ãããã¡ã¤ã«ã«ã¯ã´ããæ®ãã ã§ããã°æ¥ãæããã綺éºã«ãã¦å¸°ããã¨æãã¾ããã ãããããããããæ¸ æ¦ã¨ãé è¤ã¨ä¸ç·ãªãã ãªã¼ã£ã¦ã æ¯æ¥èªåã«ãã£ãç·´ç¿ãå¿ è¦ã§ãè伸ã³ãéãã¦ããã£ã¨ç¶ããªããæãæãéããã試åã«ãåºããªãã ãã£ã¨ããããªgemãç¥ãããã¨æã£ãããã§ããã°ã³ã¼ããèªãã§ä½ããã£ã¦ããã®ãåããããã«ãªãã¨ãããªãã ãã¨ãã®3æ¥éã§ã¾ãã¾ããè±èªã§ããããã«ãªãããã¨æãã¾ããã ä»åæµ·å¤ã®äººã¨è©±ãæ©ä¼ãä½åº¦ããã£ã¦ããäºãè¾æ¸ã§é å¼µã£ã¦è¨³ããªããï¼ã¤ã®ä¼è©±ã«ä½åãããã¦è©±ãã®ã楽ããã£ããã© (â»ãã©ã³ã¹èªã¨ããã¤ãèªãããªãã¦è±èª
ãã¼ãã§ã¯ãRuby Advent Calendar 2013 ã®13æ¥ç®ã®è¨äºã§ãã 12æ¥ç®ã®è¨äºã¯ ãã¼ãã§ã¯ãRubyããæ³£ãæ³£ãåã£ãæ¨æºæ·»ä»ã©ã¤ãã©ãª ãã¼ãã§ã¯ãRuby Advent Calendar 2013(12æ¥ç®) ã§ãã ä»æ¥ã¯ãç§ããã¼ãã§ã¯ãRubyãèªãã§æã£ããã¨ãæ°ä»ãããã¨ãæ¸ãã¾ãã ãã®åã«ãããªä¸é¢ã ãã¼ãã§ã¯ãRubyã¯ãRubyã®è¨èªä»æ§ããä¸å¯§ã«æ¸ãã¦ããæ¬ãªã®ã§ãæ®æ®µä»äºã§Rubyã使ã£ã¦ããç§ã¯ãæåã®æ¹ã¯ã ãããç¥ã£ã¦ããäºãªã¯ããã¨æã£ã¦ãã¾ããã ã§ãããããçãªæ°æã¡ã§èªãã¨ããããããç¥ããªãã£ããâ¦ã¨ãããã¨ã«çµæ§åºãããã¾ãã ç§ãç¹ã«ãã¸ã¼ï¼ãã¨æã£ãã®ã¯ ãããã¯ã® doâ¦end 㨠{}ã®ã¡ããã§ããã©ã¡ãã使ã£ã¦ãåãã ãã©ãè¤æ°è¡ã«ãªãã¨ã㯠doâ¦end 1è¡ã§æ¸ããã¨ãã¯{}ã¨è¦ãã¦ãã¾ããã ã§ãçµåã®åª
ãããèªã¿ãããã¦3æéãããã§ããã£ã¨èªã¿çµããã¾ããã ååã®RubyãRailsã®è©±ã¯ãããã§ãç¥ã£ã¦ãç¥ã£ã¦ã! ãããããã! ã¨ããå 容ãæºè¼ã§ æè¡æ¸ã£ã¦ãã¤ã,åãã£ããããªåãããªããããªæãã§èªã¿çµããã®ã§ ãªãã ãå¬ããã£ãã§ãã Rubyãã£ã¨ç¥ããã!ã¨ããæ°æã¡ãèªç¶ã¨çã¾ãããããªæç« ã§ æ¬¡ã®ã¹ãããã®Rubyã®æ¬ãèªã¿ãããªãã¾ããã å¾åã¯æåã®è©±ãRubyã³ãã¥ããã£ã®è©±ã Rubyã®é åã®1ã¤(ãããç¸å½å¤§ããé å)ã«ã³ãã¥ããã£ãããã£ã¦ããããªãã¨åç´ã«å®¢è¦³çã«æ¹ãã¦æãã¾ããã ããã¨åæã«ããããã¯ãã¾ãã³ãã¥ããã£ã«åå ã§ãã¦ããªã(ã®ã§ãã¡ããè²¢ç®ãã§ãã¦ããªã)ãã æããæ調ããããããã¾ããããã¯ã¯ã¯ã¯... ãã¼ã ã§ã®éçºã¨ãã¦ç´¹ä»ããã¦ããåãçµã¿ã¯ãã»ã¨ãã©æ¥ã ãã£ã¦ãããã¨ã§ è·å ´ã®ç°å¢ã®ããããæ¹ãã¦å®æã å¾åã¯ãã£ããèª
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}