2014-08-01ãã1ã¶æéã®è¨äºä¸è¦§
Railsã§ã¯ãURLï¼ãã©ã¡ã¼ã¿ã¼ãå«ãï¼ããã¨ã«ã³ã³ããã¼ã©/ã¢ã¯ã·ã§ã³ã決å®ããã¨ããã«ã¼ãã£ã³ã°ãããããããã¯ãã¢ããªå/config/routes.rbãã¨ããè¨å®ãã¡ã¤ã«ã«å®ç¾©ãã¾ãããã®è¨å®ãã¡ã¤ã«ã®ä¸èº«ã確èªããã¨ããããªãµã³ãã«ãè¨è¿°ããã¦ãã¾â¦
æè¿Ruby on Railsãåå¼·ãå§ããã°ããã§ãããRailsæ¨æºã§ããActive Recordãå©ç¨ãã¦ãã¼ãã«ä½æãããã¼ã¿åå¾ã¾ã§ã®æµããã¾ã¨ãã¦ããã¾ãã ã¡ãªã¿ã«ãRubyãã¼ã¸ã§ã³ï¼2.0.0ãRails4.1.4ãMySQL5.6ç³»ãåä½ããã¦ããç°å¢ãåæã¨ãã¦é²ãã¦ããã¾â¦
ä»åã¯ãRubyã®ã¯ã©ã¹ãä¸å¿ã«èªå·±å¦ç¿ããå 容ãã¾ã¨ãã¦ããã èªå·±å¦ç¿ã¡ã¢2 èªå·±å¦ç¿ã¡ã¢1 ã¯ã©ã¹ã®å®ç¾©ã¨å¼ã³åºã Rubyã®ã¯ã©ã¹ãå®ç¾©ãããã«ã¯ã以ä¸ã®ããã«classã使ããã¨ã«ãã£ã¦å®ç¾©ã§ãã¾ãã class ã¯ã©ã¹å "ããã«ã¯ã©ã¹ã®å®ç¾©çãå ¥ãã¦ãâ¦
å æ¥ã«å¼ãç¶ããä»åã¯Rubyã®ã¡ã½ãããä¸å¿ã«èªå·±å¦ç¿ããå 容ãã¾ã¨ãã¦ããã ã¡ã½ããã®å®ç¾©ã¨å¼ã³åºã Rubyã®ã¡ã½ããå®ç¾©ã®åºæ¬å½¢ã¯ä»è¨èªã¨ãã¾ãå¤ãããªãã 以ä¸ã®æ§æã§ã¡ã½ãããå®ç¾©ã§ãã¾ãã def "ã¡ã½ããå" "ããã«å¦çãããæãå ¥ãã"â¦
表é¡ã®ä»¶ãWindowsãã·ã³ã使ã£ã¦ããç§ã«ã¨ã£ã¦ã¯Linuxç°å¢ãå¿ è¦ãªæãããã¾ãã ãããã¤ã³ã¿ã¼ããããªã©ã§æä¾ããã¦ããVPSãå©ç¨ããæãããã¾ããã ããã¾ã§ãéããããããªããæ軽ã«ãã¹ãç°å¢ã欲ããï¼ã¨ãã人㯠VirtualBox + Vagrantãå©â¦
åå¿é²ã¨ãã¦ããããæ®ãã¦ããã èªåç¨ã¡ã¢ãªã®ã§åããã¥ãããã¨æãã¾ãããããã¯ã容赦é¡ãã¾ãï½ Rubyã®æ¨æºåºåã«ã¤ã㦠Rubyã®æ¨æºåºåã¨ãã¦ãprint,putsãåå¨ããã 大ããªéãã¨ãã¦ã¯ãæ¹è¡ããããå¦ãã ã print print("ãã¯ãããããã¾â¦