2011-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãæ軽ãªã¦ã§ããµã¼ãè² è·ãã¹ããã¼ã«ã®ä»£è¡¨ã¨è¨ãã° ab ã§ãããã©ããèªåã®ç°å¢(mac osx lion)ã§ã¯ãã¾ãåãã¾ãããå ·ä½çã«ã¯ãµã¼ãå´ã«ã¯ã¾ã ä½è£ãããã®ã«æ¥ç¶ãåãã¦ãã¾ã£ãããã¾ããã½ã¼ã¹ããapacheããã«ãããã¨ããã¨ãã話ããä½å¦ãã§â¦
é·å¹´ä½¿ã£ã¦ããããããWEBãµã¼ãã¹éçºæ¥è¨ããå¼ã£è¶ã(äºå®)ã å¼ã£è¶ãã®çç± è«¸è¬ã®çç±ã«ãã markdown è¨æ³ã使ããããªã£ã¦ãã ããªã¼ã©ã³ã¹ã«ãªã£ããã¨ã ãæ°åä¸æ°ï¼ ãã£ã¨æ¦ç¥çã«èªå·±ãã©ã³ãã£ã³ã°ããæ¹ãããã®ããªã¼ã¨ã willnet.inãã¡â¦
æ¥æ¬èª å島çä¸ã§ããæ±äº¬å¨ä½ããããä¸ã§ã¯ willnet ããã㯠netwillnet ã¨ãã¦æ´»åãã¦ãã¾ãã(âwillnetâ ã¯æã ä»ã®äººã«åããã¦ãã¾ãâ¦) ç¾å¨ã¯ããªã¼ã©ã³ã¹webã¨ã³ã¸ãã¢ããã¦ãã¾ãããµã¼ãã®æ§ç¯ãããµã¼ããµã¤ãããã°ã©ãã³ã°ãã¯ã©ã¤ã¢ã³ããâ¦
ããããã°4æã«éè·ãã¦ããä½ããã¦ããå ¨ç¶æ¸ãã¦ãªãã£ãã§ãããåå¹´ã»ã©èªå® è¦åå¡ãç¶ããå¾ã«ããªã¼ã©ã³ã¹ã®ã¨ã³ã¸ãã¢ã¨ãã¦æ´»åãå§ãã¦ãã¾ããä»ã¯ã¨ããä¼ç¤¾ã«å¸¸é§ãã¤ã¤ Rails 3.1.1 ã使ã£ã¦éçºããã¦ãã¾ããã¨ããã§2é±éã»ã©åããããµã¨â¦
5ãã9ã¾ã§ã®æ´æ°ãã©ã³ãã ã§è¿ããããªå¦çãæ¸ãã¨ãã1.9.2ã¾ã§ã¯ rand(5) + 5 ããã㯠r = Random.new r.rand(5..9) ã®ããã«ããå¿ è¦ãããã¾ããã§ã1.9.3ã 㨠rand(5..9) ã®ããã«ã§ããããã«ãªã£ã¦ãã¾ããå°ãã®ãã¨ã§ããã©å¬ããæ¹åç¹ã§ããâ¦
復ç¿ç¨ã¨ã³ããªããããããã¼ã«ã«ã®gemã®rdocè¦ãæ©ä¼ãå°ãªããªã£ã¦ãã¨ããã®ãããå®å ¨ã«å¿ãã¦ããgem server ããã yard server --gems ã§åºåãã rdoc ã®æ¹ãè¦ãããã§ããã åè Route 477 - ãã¼ã«ã«ã®gemã®ããã¥ã¡ã³ããè¦ãç°¡åãªæ¹æ³(2010â¦
復ç¿ã¨ã³ããªãzsh ã®ã³ãã³ã pushd 㨠popd ã«ã¤ãã¦ã setopt auto_pushd ã¨ã㦠cd -[TAB] ã§ç´è¿ã® cd å±¥æ´ãè¦ãã¦ç§»åã§ããã®ã¯ç¥ã£ã¦ããã© popd ã¯å¿ãã¦ããä¸ã«è¡ãcdä½ã£ã - hitode909ã®ãã¤ã¢ãªã¼cd ç³»ã³ãã³ãã¯ãä¸è¨ã¨ã³ããªã® up ã³ãã³â¦
Rails3.1 ããå梱ãããããã«ãªã£ã sprockets ã® README ã®æ訳ã§ãã sstephenson/sprockets - GitHub ã¯ããã« Sprockets 㯠assets ãã¡ã¤ã«ã®ã³ã³ãã¤ã«ã¨é ä¿¡ãè¡ãããã® Ruby ã®ã©ã¤ãã©ãªã§ããJavaScript 㨠CSS ãã¡ã¤ã«ã®ä¾åé¢ä¿ã宣è¨ã§ããâ¦
JavaScript ã使ã£ãã¨ã³ããã¼ã¨ã³ããã¹ãã«ã¯ capybara ã® selenium ãã©ã¤ãã使ã£ã¦ãã¾ããJavaScript ã®ãã¹ããåºæ¥ãã®ã¯å¤§å¤ä¾¿å©ãªã®ã§ãããselenium ã使ã㨠firefox ãç«ã¡ä¸ãã£ã¦ã¬ãã£ã¬ãã£ã¨ããã®ã§é ãã§ãããã¨ã¯ãã¹ãç¨ã®ãµã¼ããâ¦
Google Developer Day 2011 ã® Dev Quiz ã«ææ¦ãã - ããããWEBãµã¼ãã¹éçºæ¥è¨ã§æ¸ããããã«ã109.7ç¹ã¨ããçµæã ã£ãã®ã§åå ã§ãããå¾®å¦ã ã£ãã®ã§ãããä»æ¥ç¡äºåå 確å®ã®ã¡ã¼ã«ãæ¥ã¾ããï¼GDDã¸ã®åå ã¯åãã¦ãªã®ã§æ¥½ãã¿ã§ãï¼
macçã§æ°ã«ãªã£ããã¤ã®ã¡ã¢ã§ãã ã¢ãã¬ã¹ãã¼ã«ä½ãå ¥ã㦠alt+enter ã§æ°ããã¿ãã§éã ctrl+tab ã§ã¿ã移å ctrl+shift+tab ã§ã¿ã移å command+y ã§å±¥æ´ã¿ãã表示 command+shift+del ã§é²è¦§å±¥æ´ã®æ¶å»ãã¤ã¢ãã°ã®è¡¨ç¤º command+alt+i ã§ãããããâ¦
åãã¦ãã£ã¬ã³ã¸ãã¦ã¿ã¾ããï¼ä»¥ä¸ææ³ã åéå¥ Web Game 㨠ä¸äººã²ã¼ã ãããã¾ãããWeb Game 㯠jquery ã® click ã¡ã½ããã§ãªããã¯ãªãã¯ã§ããªãã¦ãããã¾ãã(ã¤ãã³ãå¨ãã®ç¥èä¸è¶³)ãã¾ã試ãã« CoffeeScript ã使ã£ã¦ã¿ããæ £ãã¦ãªãããã§â¦
Pow 㯠development ç¨ï¼ã¨ããå å ¥è¦³ããã£ããã©ã#{Rails.root}/.powenv ã« export RAILS_ENV=productionã¨ããã¦ããã°ãPow 㧠production ã試ããã¨ãåºæ¥ããã¨ã«æ°ã¥ããã
æè¿ rails new ã³ãã³ãã使ã£ã¦ rails ã¢ããªãçæãããã¨ãå¤ãã§ããä½ããã³ã« .gitignore ã« /vendor/bundle ã追å ãããªã©ãã¤ãåãäºããã¦ããã®ã§ããã³ãã¬ã¼ãã使ã£ã¦å ±éåãããã¨ã«ãã¾ããããã¡ã¤ã«ãGistã«ã¢ãããã¦ä¸è¨ã®ããã«ä½¿â¦
githubã§ä½¿ããã¦ããMarkdownç¨ã©ã¤ãã©ãªRedcarpetãå¾æ¹äºææ§ã®ãªã version 2 ã«ãªãã¿ããã§ããç¾æç¹ã®ãã¼ã¸ã§ã³ã¯ 2.0.0b3 ã§ãã¾ã æ¬ãªãªã¼ã¹ã§ã¯ãªãããã§ããããããã使ããªã2ã®æ¹ãåå¼·ãã¦ããã¹ãã ã¨æãã®ã§ã¾ã¨ãã¾ããåºæ¬çã«ãã¤â¦
ããããæªå¯¾å¿ã¢ããªããªããªã£ã¦ãããããªã®ã§ãsnow leopard ãã lion ã«ã¢ããã°ã¬ã¼ããã¾ãããåºæ¬çã«ã»ã¨ãã©å°ããã¨ã¯ãªãã¦æåãã¾ããããã ãã¿ã¼ããã«ã®metaãã¼ãoptionãã¼ããcommandãã¼ã«å¤æ´ããSIMBLãã©ã°ã¤ã³SwapOptCmdãåããªâ¦
capybara çµç±ã§ selenium ã使ã£ã¦ãã¹ãããæã«ã確èªãã¤ã¢ãã°ãå«ã js ããã¹ãããæ¹æ³ã®ã¾ã¨ãã æã®ããæ¹ ã¯ãªãã¯ããåã«ãconfirm ã®å 容ãå·®ãæ¿ããæ¹æ³ã page.evaluate_script('window.confirm = function() { return true; }') page.cliâ¦
é ã¾ããªãã capistrano ããã¥ã¼ããããã¨æãç«ã¡ã¾ãããã°ã°ã£ãæãã§ã¯æççãªæ å ±ããã²ã£ããããªãã£ãã®ã§ãããããã¾ã¨ãã¦å ¨ä½çãªæ å ±ãç¶²ç¾ ããå 容ãããã°ã«æ¸ããã¨æã£ãã®ã§ãããRailsãããã¤ã® capistrano ã®ç« ãããã¾ã¨ã¾ã£ã¦ãâ¦
çµæ§åã®ã¡ã¢ãçºæããã®ã§ä¸å¿è¼ãã¨ãã¾ããRails 3.1 ãã SCSS ãæ¨æºã«ãªã£ãã®ã§ãscss-mode ãå°å ¥ãã¦ã¿ã¾ãããantonj/scss-mode - GitHubèªå㧠SCSS ã CSS ã«ã³ã³ãã¤ã«ãã¦ãããæ©è½ãããã¾ãããRails 3.1 ã§ä½¿ãã ããªãèªåã³ã³ãã¤ã«å¿ â¦
RubyKaigi2011ã«å½æ¥ã¹ã¿ããã¨ãã¦åå ãã¦ãã¾ããï¼ååã®RubyKaigiã¯ä»äºã§ãã«ã«åå ãããã¨ãã§ããæããã£ãã§ãã 次åã¯ã¡ããã¨å ¨é¨åå ãããã§ãï¼ï¼ãããã¹ã¿ããã§åå ãããã Rubykaigi2010ã«åå ãã - ããããWEBãµã¼ãã¹éçºæ¥è¨ ä»â¦
ãã¹ãç¨ãéçºç¨ã® gem ãé¤ã㦠gem ãã¤ã³ã¹ãã¼ã«ãããå ´åã--without ã§ãããªãã°ã«ã¼ããæå®ããã¨ãã bundle install --without test development
ãã£ã¨èå³ããã£ã¦åå ãããã£ãã®ã§ãããããããæ¥ç¨ãåã£ãã®ã§åå ãåãã¦ãã«ããªã³ã°ãªããã®ããã¦ã¿ã¾ãããæ±äº¬ãã«ããªã³ã°Rubyä¼è° : ATNDãã£ã¦ã¿ãææ³ã¨ãã¦ã¯ãã¨ã«ããé¢ç½ãï¼åç´ãªè åã ãã§ã¯ãã¡ã§ããã©ã®ããã«ä½ãåããã°ç¡çâ¦
éã»åã®äºæ¥éããã³ãã£ã¼ã«ãã§ç¬¬4åï¼ãä¸çä¸ã§ä½¿ããããµã¼ãã¹ãèãããã«åå ãã¦ãã¾ããï¼ä»¥ä¸ææ³ã ä¸æ¥ç® ä¸çã«ç¾½ã°ãããã³ãã£ã¼ä¼æ¥ã®ä¸ã®äººã®ã¹ãã¼ã LT ãä¸çä¸ã§ä½¿ããããµã¼ãã¹ãä½ãã«ã¯ã©ããããããããã¨ããè°é¡ã«ã¤ãã¦è©±ãâ¦
ä¹ ãã¶ãã« smiley hackathon ã«åå ãã¾ããï¼ã¬ã¤ã¢ãã¯ã¹ããã«åãã¦è¡ã£ãã®ã¨ãæ°è¦ã§åå ããã¦ããæ¹ãå¤ãã®ã¨ã§æ°é®®ãªæãã§ãããå½æ¥ã®ä½æ¥å 容ã¨ãã¦ã¯ãCapybara ããªãã¨ãªã使ã£ã¦ãã¹ããæ¸ãã¦ãããããã£ãã®ã§ãCapybaraãã¡ããã¨åå¼·â¦
注æ ãã®è¨³ã¯ã ãã¶å¤ã(2011å¹´7ææã®README)ã§ããææ°çã®è¨³ãgithubä¸ã«è¼ããã®ã§ãã¡ããã覧ãã ããã ã¯ããã« Rails ã®ã¨ã³ããã¼ã¨ã³ããã¹ãç¨ã®ããã¡ã¯ãã¹ã¿ã³ãã¼ããã©ã°ã¤ã³ Capybara ã® README æ訳ã§ãããã¤ãã¨æ¯ã¹ã¦ç´è¨³æåå¤ãã§â¦
ä¸è¨ã®ãããªã³ã¼ãããã¾ãåããªãã£ãã link_to "åé¤", post, remote: true, method: :delete ãã°ããæ©ãã ã㨠jquery_ujs.js ãæåã§ææ°ã«æ´æ°ããããã¾ãåããããã¡ã¤ã«ã®æ´æ°ãèªåã§ãã£ã¦ãããã¨ãããã ãã©ãªã¼ã»ã»ã»ã¨æã£ãã Generaâ¦
æ¬å±ã§è¦ããã¦ãããã ã£ãã®ã§è²·ã£ã¦èªãã§ã¿ã¾ãããèªåã«ã¨ã£ã¦éè¦ãããªé¨å(主ã«æéãç¯ç´ããæ¹æ³ã«ã¤ãã¦æ¸ããã¦ããç®æ)ã ãæ¾ãèªã¿ãã¦æ°æéã§èªç ´ããé±ï¼æéãã ãåããposted with amazlet at 11.06.29ãã£ã¢ã·ã¼ã»ãã§ãªã¹ éå¿ç¤¾ 売â¦
è¨å¿µãã¹ã第10å第12åã®mitaka.rbã«è¡ã£ã¦ãã¾ãããç¸å¤ãããã®ããããã§ãããåå ãããçæ§ãç²ãæ§ã§ããï¼ï¼ï¼æè¿ããã¨ãããã°è¦ã¦ã¾ããã¨ãããã¨ãè¨ããããã¨ãå¢ãã¦å¤§å¤å±ã¿ã«ãªãã¾ããããããããªãã¹ãããããæ´æ°ãã¦ããããã¨æâ¦
Railsã¢ããªã®éçºã« bundler ã使ãããã«ãªã£ã¦ãgem é¢é£ã§ããããã¨ã¯å°ãªããªã£ããããªæ°ããã¾ãããã ããã®ä»£ããã«ããªã«ãã³ãã³ããå©ãã¨ãã« bundle exec ãã¤ãå¿ãã¦ã¨ã©ã¼ã«ãªããã¨ãæã ãã£ã¦ããããªæã«å°ã ããã©ãããæãã¾ããbuâ¦
i18nç¨ã®ãã¡ã¤ã«ãä¸è¨ã®ããã«è¨å®ãã¦ãã㨠ja: helpers: submit: create: "ç»é²ãã" update: "æ´æ°ãã" submit: "ä¿åãã" label: user: email: "ã¡ã¼ã«ã¢ãã¬ã¹" password: "ãã¹ã¯ã¼ã"ä¸è¨ã®ãããªãã©ã¼ã ãæ¥æ¬èªã«ãªãã¾ã(I18n.locale = "ja"â¦