ã¤ã³ãã©ã¹ãã©ã¯ãã£ã¼é¨ã®æç°ã§ãã å æ¥éå¬ããã RubyKaigi 2013 ã§ã "High Performance Rails" ã¨ããã¿ã¤ãã«ã®çºè¡¨ããã¦ãã¾ããã ã¹ã©ã¤ãã¨åç» çºè¡¨ã®æ§å㯠ustream ã®é²ç»ãã覧ãã ããã [ustream id=33559705 hwaccel=1 version=3 width=480 height=302] ã¹ã©ã¤ãã¯ä»¥ä¸ã«ã¢ãããã¼ããã¦ããã¾ãã High Performance Rails (long edition) // Speaker Deck ãªããçºè¡¨æéã®é½åä¸ãå½æ¥ã¯ãããã 40 æã»ã©ã®ã¹ã©ã¤ããåé¤ãã¦ãã¾ãã¾ãããçºè¡¨ã«ä½¿ã£ãçããã¼ã¸ã§ã³ã®ã¹ã©ã¤ãã¯ãã¡ãã§ãã çºè¡¨ã®æ¦è¦ ã¯ãã¯ããã㯠2008 å¹´ãã Ruby on Rails ãæ¡ç¨ãããã£ã¨ä½¿ãç¶ãã¦ãã¾ããããµã¼ãã¹ãæé·ããã¨ã¨ãã«
Ruby on Rails ãã¥ã¼ããªã¢ã« å®ä¾ã使ã£ã¦ Rails ãå¦ã¼ã ãããã¯ãéçºã®ï¼âï¼ãå¦ã¹ã Webãµã¼ãã¹ãåµããªããå¦ãã§ãã大åãã¥ã¼ããªã¢ã«ã§ãã解説åç»ã質å対å¿ãæä¾ãã¦ãã¦ãç波大å¦ãçç大å¦ãªã©ã§ãæ¡ç¨ããã¦ãã¾ããRailsãã¥ã¼ããªã¢ã«ã§èªåã®ãªãªã¸ãã«ãµã¼ãã¹ãåµã£ã¦ã¿ã¾ããã? åèè ããï¼æ¥æ¬ã®èªè ã®çæ§ã¸ Ruby on Rails Tutorial ããã¾ã¤ãã¨ããã²ã (Matz) æ°ã®æ¯èªã§ããæ¥æ¬èªã§ãèªããããã«ãªã£ããã¨ãå¬ããæãã¾ããããæ°å¹´é㧠Matz ãæ¥æ¬ã® Ruby éçºè ã®æ¹ã ã¨ãä¼ããã¾ããããå½¼ãã®æè¡çãªæè¦ã¨è¦ªåãã¯ãã¤ãç§ã«æéãä¸ãã¦ããã¾ãã ã¾ããå®å· è¦å¹³æ°ãå «ç° æä¸æ°ãå§ãã¨ããå¤ãã®ååè ã®æ¹ã ã Rails Tutorial ã翻訳ãã¦ããããã¨ãå æ ã«æãã¾ããå½¼ãã®ç´ æ´ãããææã«æè¬ã
ç°¡åãªæ³¨æã·ã¹ãã ãæ³å®ãã¦ã»ãã·ã§ã³ãé²ãã¾ãã 以ä¸ãå®è¡ãã¦ãã¢ããªã®éçºã«å¿ è¦ã¨ãªããã¡ã¤ã«ãçæãã¾ãã (rails -h ã¨å®è¡ããã¨ãå©ç¨å¯è½ãª rails ãµãã³ãã³ãã¨ãµãã³ãã³ãã®èª¬æã表示ããã¾ã) rails new chumon å¿ è¦ãªãã¡ã¤ã«ã chumon ãã£ã¬ã¯ããªã®ä¸ã«çæããã¾ãã 以é㯠chumon ãã£ã¬ã¯ããªã®ä¸ã§ä½æ¥ãè¡ãã¾ãã cd chumon 以ä¸ã¯ Rails3.2 ã§æåã«ãããªããã°ãªããªãã決ã¾ãã®è¨å®ã§ãã Gemfile ãç·¨éãã¾ãã gem 'therubyracer', :platform => :ruby Gemfile ãç·¨éããå¾ã¯å¿ ã bundle install ã³ãã³ããå®è¡ãã¾ãã bundle install Rails ã¢ããªã®ãã£ã¬ã¯ããªæ§é ã§ãã . # |-- Gemfile # ã¢ããªã§å©ç¨
ããã«ã¡ã¯ãï¼ ITç·¨éé¨ã®è¥¿æè³¢ã§ããITç³»ã®ãªã³ã©ã¤ã³ã¡ãã£ã¢ã§ç·¨éã»è¨è ããã¦ããã¾ããã¿ã¤ãã«ã«ãã©ç´ 人ãã¨æ¸ãã¨ãã¡ãã£ã¨åã«ãªãã®ã§ãç´ äººãã¨æ¸ãã¾ããããç´ äººãWebã¢ããªãä½ã£ã¦ã¿ãä½é¨è«ã¨ææ³ãæ¸ãã¦ã¿ããã¨æãã¾ããããªã¬ãããã°ã©ãã³ã°ãåå¼·ãã¦ä½ãä½ã£ã¦ã¿ããï¼ãã¨èãã¦ãã人ãããèªåã§ãµã¼ããåãã¦ä½ããã£ã¦ã¿ããã¨æã£ã¦ãããã ãããã¨ãã人ã®åèã«ãªãã°å¹¸ãã§ãã å»å¹´ã®å¤ãWebã¢ããªã±ã¼ã·ã§ã³éçºãã¬ã¼ã ã¯ã¼ã¯ã®Ruby on Railsã®ãã¨ã調ã¹ã¦ãã¦ãé¢ç½ããã ãªãã¨æããããã¥ã¡ã³ãã«å¾ã£ã¦ãµã³ãã«ã¢ããªãããã¤ãä½ã£ã¦ã¿ã¾ãããä½ã£ããå£ããããã¦ããéã«ãããæãã¾ããã ãããï¼ ãããªãèªåã欲ããã£ããµã¼ãã¹ãä½ãã¡ããããããªãã®ï¼ã ã§ããWorklistaãï¼ã¯ã¼ã¯ãªã¹ã¿ï¼ã¨ããååã®Webãµã¼ãã¹ãä½ãã¾ããã3ã«æã»ã©åãã親ã
2011å¹´07æ26æ¥13:29 Ruby Railsã¨ã³ã¸ãã¢ãªãããã ãã¯ç¥ã£ã¦ããã£ã¦ãã便å©ã¡ã½ãã Object#presence 㨠Object#try ã¨ãã便å©ãªã¡ã½ããããããã¨ããåç¥ã§ããï¼ãã®ï¼ã¤ã®ã¡ã½ããã¯ã¨ã£ã¦ã便å©ãªã®ã§ã¡ãã£ã¨ç´¹ä»ãã¦ã¿ã¾ãã Object#presence ã¡ã½ãã ããã¯ä»¥ä¸ã®ãããªå®ç¾©ã¨ãªã£ã¦ãã¾ãã def presence self if present? end present? ã¡ã½ããã¨ããã®ã¯ã¿ããªå¤§å¥½ã blank? ã®å対ã®ã¡ã½ãã (!blank?) ã§ãã ã¤ã¾ããnil, false, [](空é å), {}(空ããã·ã¥), ""(空æåå), " "(åè§ã¹ãã¼ã¹ã ãã®æåå)ã§ããã° falseããã以å¤ã§ããã° true ã«ãªãã¾ãï¼blank? ã£ã¦åè§ã¹ãã¼ã¹ã ãã®æååã true ã¨å¤å®ããã®ç¥ã£ã¦
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}