29 August 2006 Developing a Rails model using BDD and RSpec, Part 1 Writing Rails testing articles seems to be quite popular at the moment; seeing as Iâm often quite vocal about testing on the #caboose and #rubyonrails IRC rooms I felt it was about time I posted one of my own. I have a large series of articles on testing with Rails in the pipeline, but until that is done, here is a nice and simple
Four Days on Railsæ¥æ¬èªç Ruby on Railsã®æ¬å®¶ãµã¤ã ã§ãç´¹ä»ããã¦ãããJohn McCreeshããã®ä½æãããã¥ã¼ããªã¢ã«"Four Days on Rails":http://rails.homelinux.org/ ãæ¥æ¬èªã«è¨³ãã¾ããã Rails4Days-J.pdf ãã®ãã¥ã¼ããªã¢ã«ã¯ãCreative Commons Attribution-NonCommercial-ShareAlike Licenseã®ãã¨ã§å ¬éããã¦ãããæ¥æ¬èªçãåæ§ã§ãã Four Days on Railsã¯Scaffoldã試ãã¨ãããä¸çªæåã®ãã¥ã¼ããªã¢ã«ãããå®éã®ã¢ããªã±ã¼ã·ã§ã³ãä½æããã«ã¯ã©ãããã°ããã®ãã示ãããåªããå ¥éããã¹ãã§ããæ®å¿µãªããRailsã®åæã«ãããããããç¾å¨ã®Railsã«ã¯é©åããªãé¨åãè¦ããã¾ãããããããRuby
ã¾ã¤ãã¨ããã²ãæ°ãéçºããããã°ã©ãã³ã°è¨èªRubyã¯ï¼ãã¾ãã½ããã¦ã¨ã¢éçºã®ä¸çã§ã¯ã¯ã¼ã«ãã¯ã¤ããªåå¨ã§ãããã¹ã¯ãããã»ã¢ããªã±ã¼ã·ã§ã³ããWebã¢ããªã±ã¼ã·ã§ã³ã¾ã§ãã®ç¨éã¯å¹ åºãï¼ä»å¾ãæ§ã ãªåéã§å©ç¨ããã¦ãããã¨ã¯ééãããã¾ããããã®è¨äºã§ã¯ï¼Rubyããã°ã©ãã³ã°ã®åæ©ã®åæ©ãï¼å¶å¾¡æ§é ãããªãã¸ã§ã¯ãæåããã°ã©ãã³ã°ã®å°å ¥é¨ã¾ã§ç°¡æ½ã«è§£èª¬ãã¾ãã Rubyã¯ï¼ãªãã¸ã§ã¯ãæåã®ã¹ã¯ãªããè¨èªã§ãããããï¼ã¨ã¦ãå¼·åã§ããçè ã¯ï¼Rubyãç¥ãåã¯Perlã¨Javaã使ã£ã¦ãã¾ãããPerlã¯åªããã¹ã¯ãªããè¨èªã§ããï¼Javaãåªãããªãã¸ã§ã¯ãæåè¨èªã§ãããããRubyã¯ï¼Perlãããç¾ããè¨èªã§ï¼Javaããã使ãããããªãã¸ã§ã¯ãæåè¨èªã ã£ãã®ã§ãï¼ ä»ã§ã¯Rubyï¼Perlï¼Javaã ã¨æã£ã¦ãã¾ãã Rubyã«ã¯Perlããææ¬ã¨ããå¼·åãªæååæ
æ¬é£è¼ã®æçµåã¨ãªãä»åã¯ããã¼ã¿ãã¼ã¹ã®è«çé害ããã¼ãã¨ãã¦åãä¸ãã¾ãããã¼ã¿ãã¼ã¹ã¨ã³ã¸ãã¢ã®ä»äºã¨ãã¦ã¯ãããã¾ã§ã®é£è¼ã§ç´¹ä»ãã¦ãããã¼ã¿ãã¼ã¹è¨è¨ã«ã¤ãã¦åãä¸ãããããã¨ãå¤ãã®ã§ãããè«çé害ãå«ããã¼ã¿ãã¼ã¹éç¨è¨è¨ã¯ãã·ã¹ãã ã®è¨è¨éçºããå§åçã«é·ãä¿å®éç¨æéãä¹ãåãããã«é常ã«éè¦ãªå·¥ç¨ã§ãã ä»åã®ã¿ã¤ãã«ãããé£æ³ãããã¨ãããå½åã¯ããã¾ãã¾ãªæ¹æ³ã§æ¬å½ã«ãã¼ã¿ãã¼ã¹ãå£ãã¦é害ç¶æ ã観å¯ããããããã®å¾©æ§ä½æ¥ãçä¼¼ä½é¨ãããã¨ãããã¼ã¿ãã¼ã¹ã®ç©çé害ããã®å¾©æ§ãããããããã¯ã¢ããã¨ãã¼ã¿ãã¼ã¹ãªã«ããªãäºå®ãã¦ãã¾ããã ããããè¿ã ã®ãã¼ãã¦ã§ã¢äºæ ãè¦ãã¨ãé«æ§è½åãä½ä¾¡æ ¼åãé²ã¿ãå®ä¾¡ã«åé·æ§ãæã£ãç°å¢ãç¨æã§ããããã«ãªãããã¼ãã¦ã§ã¢é害ãç´æ¥ãã¼ã¿ãã¼ã¹é害ã®åå ã«ãªãã±ã¼ã¹ãå°ãªããªãã¾ãããã¾ããOSãDBMSãªã©ã®ã½ããã¦ã§ã¢ã®
ãDIï¼ä¾åæ§æ³¨å ¥ï¼ããã©ãã¸è¡ããã ãã®1ãã«ããã¦ï¼ DIï¼ä¾åæ§æ³¨å ¥ï¼ã«ã¤ãã¦ã¯ãéèªãæ¸ç±ã§éåç´¹ä»ããã¦ããã®ã§ãããããã®ãè¦ã¦ãã ããã ãããªãã¨[注ï¼DIå]ãã¦ä½ããããããã£ã¦ï¼ ããã¯ããã¡ã¦ã©ã¼å çã¨ããã®ä»ã¨ã©ã¤äººã¨ãã¨ã©ã¯ãªã人ã¨ãã«èãã¦ãã ããã ã¨æ¸ãã¾ããããDIï¼Dependency Injection; ä¾åæ§æ³¨å ¥ï¼ãã®ãã®ã«ã¤ãã¦ã説æã試ã¿ã¦ã¿ã¾ããããå ·ä½çãªãµã³ãã«ã使ããã¨ã«ãã¾ãããã®ããããµã³ãã«ã®èª¬æãé·ããªã£ã¦ãã¾ãã®ãå°ã£ããã¨ã§ãããã¾ã¼ãåãªãè½æ¸ãããã¯ãµã³ãã«ããã£ãã»ããããã§ããã å å®¹ï¼ ãµã³ãã«ã¯ãã³ãã¬ã¼ãå¦çç³» ã¬ã¯ãµã¼ï¼åå¥å¦çç³»ï¼ ã¬ã¯ãµã¼ãã¤ã³ã¿ã¼ãã§ã¼ã¹çµç±ã§ä½¿ã ãµã¼ãã¹ã»ãã±ã¼ã¿ã¼ ä¾åæ§ãæ¶ãã¦ãªãï¼ DIï¼ä¾åæ§æ³¨å ¥ï¼ç»å ´ DIãããã¤ã¦IoCï¼å¶å¾¡ã®é転ï¼ã¨å¼ã°ãã¦ããçç± âãµã³ãã«ã¯ã
2006å¹´09æ22æ¥06:00 ã«ãã´ãªLightweight Languages javascript - prototype HateBJSON ããã§ãã£ã¨ fetch4js ã¿ãããªåæã使ããã«ãJavascriptã®ã¿ã§ã¯ã¦ãã®ãã¼ã¿ãåå©ç¨ã§ãã¾ããã ã¯ã¦ãªããã¯ãã¼ã¯ã¨ã³ããªã¼æ å ±åå¾APIã¨ã¯ - ã¯ã¦ãªãã¤ã¢ãªã¼ http://b.hatena.ne.jp/entry/json/ä»»æã®URL*1 ã GET ãªã¯ã¨ã¹ãã§éä¿¡ãããã¨ã«ãããJSON å½¢å¼ã§ãã¼ã¿ãåå¾ãããã¨ãã§ãã¾ãã ã¨ããããã§ãã¯ã¦ãã®JSONãåã£ã¦ããPrototypeãã åºæ¬çãªä½¿ãæ¹ã¯ãããªæãã var hatebjson = new HateBJSON('parse_hatebjson'); function parse_hatebjson(json){ // ããã§jsonã
Rails Engines are supported by Ruby-GetText-Package since 1.8.0. It's similar with supporting Rails. So you can understand this HOWTO well if you learn Rails localization with GetText before. Read Ruby-GetText-Package HOWTO for Ruby on Rails first. In this tutorial, I explain to localize LoginEngine plugin. So you need to set up Rails Engines and LoginEngine first. LoginEngine has its own database
â â â 404 File not found... â â â ããªããæå®ãããã¡ã¤ã«ã¯è¦ã¤ããã¾ãã... URLã«ééãããªãããå度確èªãã¦ãã ãããåèªã¿è¾¼ã¿ãã¦ãã ããã ãTOK2.comã http://tok2.com/
ãã®ããã¹ãã¯ã2005å¹´7æã«ãã¼ã¿ãã¦ã¹ããåºçããããã¢ã»ã³ããªè¨èªã®æç§æ¸ãã®å稿ãWEBç¨ã«ä¿®æ£ãããã®ã§ããWEBç¨ã«ä¿®æ£ããã¨ãã£ã¦ãã誤æ¤ãç´ããç¨åº¦ã§ãããã»ã¼ãã®ã¾ã¾ã®ç¶æ ã§å ¬éãã¦ãã¾ãã ç¾å¨ã§ããã¢ã»ã³ããªè¨èªã®æç§æ¸ãã¯æ¸åºã§å£²ããã¦ãããä¸è¬ã«æµéãã¦ãããããæ¬æ¥ãªãã°ãåºç社ã¨ã®å¥ç´ä¸ããã®ããã«ããªã¼ã§WEBä¸ã«å ¬éãããã¨ã¯ã§ãã¾ããããããããã¢ã»ã³ããªè¨èªã®æç§æ¸ãã¯ãçºå£²å¾ãã§ã«ä¸å¹´ãéãããã¨ãã¦ããã«ãé¢ããããç¾å¨ã§ãå®å®ãã売ãä¸ãã伸ã°ãã¦ãããå½åã®äºæ³ãè¶ ãã¦å¤ãã®æ¹ã ã«èªãã§ããã ãã¾ããã ãã£ã¦ãåºç社ã«ãæ¬æ¸ã®å¤æ®µãé«ãã¦ãèªã¿ããã¦ãè²·ããªãå¦çã®æ¹ã ããã¾ã æ¬æ¸ã®åå¨ãç¥ããªã人ãã¡ã®ããã«ãå稿ã®ä¸é¨ãWEBä¸ã«ãå ¬éã§ããªãã ããããã¨ãç¸è«ãæã¡ãããã¨ãããæ¬æ¸ã«é¢ãã£ãç·¨éè ããããå稿ã®ãã¹ã¦ã¯ç¡çã ãä¸é¨å
ECObjects ï½ä¸çãå¤ããã½ãªã¥ã¼ã·ã§ã³ãç®æãã¦ï½ âæ¥æ¬çºã»ä¸çåâ ã¯ã©ã¹ã®ãã¯ããã¸ã¼ã§ 社ä¼ã®çºå±ã«è²¢ç®ãã¾ãã ã¯ã©ã¹ãã¯ããã¸ã¼ã¯ãçµ±ååé¨å表ãã³ã³ã»ããã¨ããECObjectsã¨ãã èªç¤¾ãããã¯ããä¸å¿ã«ã製é æ¥ã®ä¸æµããä¸æµã¾ã§ã®å ¨ã¦ã®åéã ãµãã¼ããã製é æ¥åãç·åã½ãªã¥ã¼ã·ã§ã³ã«ã³ããã¼ã§ãã
Section 1ï¼æ¦èª¬ Section 2ï¼ç»ååããã¹ã Section 3ï¼ãµã³ã»ãªã欧æ(1) Section 4ï¼ãµã³ã»ãªã欧æ(2) Section 5ï¼ãµã³ã»ãªã欧æ(3) Section 6ï¼ã»ãªã欧æ(1) Section 7ï¼ã»ãªã欧æ(2) Section 8ï¼ã»ãªã欧æ(3) Section 9ï¼èæ¸ç³»ã»çæ¸ç³»æ¬§æ(1) Section 10ï¼èæ¸ç³»ã»çæ¸ç³»æ¬§æ(2)ã»è£ 飾系欧æ Section 11ï¼çå¹ æ¬§æã»ãã®ä»ã®æ¬§æ Section 12ï¼ã´ã·ãã¯ç³»åæ(1) Section 13ï¼ã´ã·ãã¯ç³»åæ(2) Section 14ï¼ææç³»åæ(1) Section 15ï¼ææç³»åæ(2) Section 16ï¼ãã®ä»ã®åæ Appendix Aï¼ç¡åå©ç¨ã§ãããã©ã³ã Appendix Bï¼Windows ã®æ¨æºãã©ã³ã Appendix Cï¼PostScript
æ ªå¼ä¼ç¤¾éæç·åç 究æï¼ä»¥ä¸ï¼®ï¼²ï¼©ï¼ã¯ããªã¼ãã³ã½ã¼ã¹ã«é¢é£ããããã¥ã¢ã«ã»å©ç¨ã¬ã¤ããªã©ã®ä¸è¬æè¡è³æãæ¬ãµã¤ãã«ã¦å ¬éãã¦ãã¾ããNRIã§ã¯ã社å ã®ãã¦ãã¦ãç©æ¥µçã«å ¬éãããã¨ã«ããããªã¼ãã³ã½ã¼ã¹ã®å¥å ¨ãªçºå±ã«è²¢ç®ãããã¨èãã¦ããã¾ãã NRIã§ã¯ããã¾ã§ã«ç¤¾å R&Dã§è©ä¾¡ãããªã¼ãã³ã½ã¼ã¹ãèªç¤¾è£½åã§ãããObjectWorks+ãã®éçºç°å¢ã«åãè¾¼ãæ´»åãè¡ã£ã¦ãã¾ãããç¾å¨ãObjectWorks+ã§ã¯å½å ã«ãããæ®åãéã¿ããªã¼ãã³ã½ã¼ã¹ã®éçºç°å¢ã§ããEclipseãæ¨æºéçºç°å¢ã¨ãã¦åãè¾¼ãã§Pluginã®éçºãæ¥æ¬èªã®å©ç¨ã¬ã¤ããä½æãã¦ãã¾ããããã«ãæ¨æºçãªéçºç°å¢ã¨ãã¦Eclipseãæ¥æ¬å½å ã§åºãæ®åãããã¨ãé¡ã£ã¦ããããã®ç¤¾å åãããã¥ã¡ã³ãã社å¤ã«ãå ¬éãã¦ãã¾ãã ç¾å¨ãå ¬éãã¦ããããã¥ã¡ã³ãã¯Eclipseã使ã£ã¦Webã¢ããªã±ã¼ã·ã§ã³ãé
was: wodock.jp :tutorial:api:woproject/wolips: :del.icio.us/wodock:books:about us.:
ä»åã¯ãã¡ãã¥ã¼ããã°ã©ãã®ç¨®é¡ãå¤æ´ã§ããããã«ãã¾ããããã¾ã§ã¯ã3D縦æ£ã°ã©ãã§ãã¼ã¿ã表示ãã¦ãã¾ããããã°ã©ãã®ç¨®é¡ãæãç·ã°ã©ãã¨åã°ã©ãã«å¤ããããããã«ãã¾ãã
渡辺è¡ã»æ å ±å社ä¼ã®èªæµ·å³ï¼æ å ±ç¤¾ä¼å¦è¿½èª¬ï¼ ãªã¼ãã³ã³ãã¥ããã£ã¨ãã©ã¤ãã¼ãã»ã¯ã¿ã¼ã®åå¼ã¢ãã« http://blog.japan.cnet.com/watanabe/archives/003037.html ãå ±ã®é åã¨ç§ã®é åã è«èã¯ãåèã«ãªãå®ã«æãé£ãã å人ãã¼ã¹ã§ã®ããªã¼ãã³ã½ã¼ã¹ã§ã©ããã£ã¦é£¯ãé£ãã®ãã®ãã¼ãã«ã¤ãã¦ã¯ã ããããèå¯ã¯ããã ãªã¼ãã³ã½ã¼ã¹éçºè ã®çæ´»ã®ç¶ææ¹æ³ã¯ï¼ http://www.rubyist.net/~matz/slides/k-of2003/mgp00024.html ããã ãã³ãã¥ããã£ã¨ä¼æ¥ããããã¯çã¿åºãããææç©ã®å©ç¨è ã®éã¨ã®åå¼é¢ä¿ã«ã¤ãã¦ãã®åãå£ã¯ã¾ã ã¾ã æªéã®ãã¼ãã§è«èã¯èå³æ·±ãã å人ãã¼ã¹ã§ã¯ãèªåã®æéãã ãã¦èªåãã¹ãã³ãµã¼ã§ãããããã¨ãããã¨ããã®ãããã çµå±ã誰ãã¹ãã³ãµã¼ã«ãªããï¼ãã§ãã£ã¦
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}