ruby16

 ruby16

Rails編 ガイダンス
2013.10.3

5ad0bb268dd2605b09165d464308cb7e?s=128

Kuniaki IGARASHI

September 28, 2013
Tweet

Transcript

  1. 3VCZPO3BJMTߨٛ ୈճΨΠμϯε ޒेཛྷ๜໌ UXJUUFSJHBJHB IUUQXXXGBDFCPPLDPNLVOJBLJJHBSBTIJ BUҰڮେֶ χϑςΟגࣜձࣾدෟߨٛ ࣾձՊֶʹ͓͚Δ৘ใٕज़ͱ ίϯςϯπ࡞੒*7

  2. χϑςΟגࣜձࣾ ఏڙ

  3. ޒेཛྷ๜໌ ߨࢣ גࣜձࣾTQJDFMJGF UXJUUFSJHBJHB IUUQTHJUIVCDPNJHBJHB IUUQXXXGBDFCPPLDPNLVOJBLJJHBSBTIJ

  4. ᖛ࡚݈ޗ 5FBDIJOH"TTJTUBOU qVYqFY JOD ถࠃ๏ਓ UXJUUFSINTL IUUQTHJUIVCDPNINTL IUUQXXXGBDFCPPLDPNIBNBDIBOH

  5. ࠓ೔΍Δ͜ͱ ߨٛʹ͍ͭͯ ධՁํ๏ ਐΊํ ͜ͷߨٛΛड͚ΔͱͰ͖ΔΑ͏ʹͳΔ͜ͱ 3BJMT։ൃ؀ڥͷ࡞Γํ ΄͔ લ൒ʙɹޙ൒ʙ 

  6. ධՁํ๏ ԋश՝୊Λఏग़͍͖ͯͨͩ͠੒੷ධՁΛߦ͍·͢ɻ ·ͨɺतۀ΁ͷߩݙ౓΋ධՁͷର৅ͱ͠·͢ɻ ग़੮͕तۀճ਺ͷ෼ͷʹຬͨͳ͍৔߹͸ʮ'ʯͱ͠ ·͢ɻ 

  7. ࡶஊɾ࣭໰༻GBDFCPPLάϧʔϓ ޙظ΋ͦͷ··࢖͑·͢ɻࢥ͍ग़ͨ͠ͱ͖ʹࡶஊ΍࣭໰ͯ͠΋Βͬͯ0,ɻ अຐͳΑ͏ͳΒάϧʔϓ͔Βୀձ͍ͯͩ͘͠͞ɻ IUUQTXXXGBDFCPPLDPNHSPVQTIJUPUTVCBTIJSC ɾՃೖඇՃೖ͸ࣗ༝Ͱ͢ ɾՃೖඇՃೖ͸੒੷ʹؔ܎͠·ͤΜ ɾࢀՃऀҰཡ͸ެ։͞Ε·͢ ɾॻ͖ࠐΈ͸ࢀՃऀͷΈݟ͑·͢ ɾر๬ऀ͸ΞΫηεͯ͠ࢀՃਃ੥͍ͯͩ͘͠͞ ɾࡶஊɺ࣭໰ɺٞ࿦ͳͲԿͰ΋ؾʹͤͣͲ͏ͧʙ

    ɾ࣭໰ʹ౴͑ΒΕΔਓ͸౴͍͑ͯ͋͛ͯͩ͘͞ ɾߨࢣਞ΋͓౴͑͠·͢ ɾೖͬͨΒܰࣗ͘ݾ঺հ͓Ͷ͕͍͠·͢ 
  8. ߨٛࢿྉஔ͖৔ աڈͷࢿྉ͕%-Ͱ͖·͢ɻ IUUQTHJUIVCDPNJHBJHBIJUPUTVCBTIJSVCZ

  9. ࣗश༻3BJMTࢿྉ ಛʹڭՊॻ͸࢖͍·ͤΜ͕ɺࣗश༻ʹ͸ҎԼͷࢿྉΛ͓קΊ͠·͢ɻ 3BJMT5VUPSJBM XFC IUUQSBJMTUVUPSJBMKQ WFSTJPO  3BJMT(VJEF XFC &OHMJTI

    IUUQHVJEFTSVCZPOSBJMTPSH 3BJMTʹΑΔΞδϟΠϧ8FCΞϓϦέʔγϣϯ։ൃୈ൛ IUUQXXXBNB[PODPKQEQ վగ৽൛جૅ3VCZPO3BJMT IUUQXXXBNB[PODPKQEQ ͨͷ͍͠3VCZ IUUQXXXBNB[PODPKQEQ 
  10. 3VCZPO3BJMTͱ͸ 3VCZͰॻ͔Εͨ8FCΞϓϦϑϨʔϜϫʔΫ 

  11. $00,1"% 3BJMT੡ 

  12. ৯΂ϩά 3BJMT੡ 

  13. 0INZ(MBTTFT 3BJMT੡ 

  14. UNJY 3BJMT੡ 

  15. ͋ͱͰ 3BJMT੡ 

  16. UXJUUFSݩ3BJMT੡ 

  17. 3VCZͷجૅ͕਎ʹ͖ͭɺ؆୯ͳϓϩάϥϜΛॻ͚Δ ɹXJLJQFEJBΞΫηε਺ղੳ࣮श 3VCZPO3BJMTͷجૅ͕਎ʹ͖ͭɺ؆୯ͳΞϓϦΛ࡞ΕΔ 3VCZʹؔ͢Δෆ໌఺͕͋ͬͨͱ͖ʹௐ΂ΒΕΔ ͜ͷߨٛΛड͚Δͱ ͜Ε͕Ͱ͖ΔΑ͏ʹͳΔ ༧ఆ 

  18. 3VCZͷجૅ͕਎ʹ͖ͭɺ؆୯ͳϓϩάϥϜΛॻ͚Δ ɹXJLJQFEJBΞΫηε਺ղੳ࣮श 3VCZPO3BJMTͷجૅ͕਎ʹ͖ͭɺ؆୯ͳΞϓϦΛ࡞ΕΔ 3VCZʹؔ͢Δෆ໌఺͕͋ͬͨͱ͖ʹௐ΂ΒΕΔ ͜ͷߨٛΛड͚ͨΒ ͜Ε͕Ͱ͖ΔΑ͏ͳͬͨ Նֶظ 

  19. 3VCZͷجૅ͕਎ʹ͖ͭɺ؆୯ͳϓϩάϥϜΛॻ͚Δ ɹXJLJQFEJBΞΫηε਺ղੳ࣮श 3VCZPO3BJMTͷجૅ͕਎ʹ͖ͭɺ؆୯ͳΞϓϦΛ࡞ΕΔ 3VCZʹؔ͢Δෆ໌఺͕͋ͬͨͱ͖ʹௐ΂ΒΕΔ ͜ͷߨٛΛड͚ͨΒ ͜Ε͕Ͱ͖ΔΑ͏ͳΔ ౙֶظ 

  20. ͜Μͳ͜ͱΛ΍Δ༧ఆͰ͢ 3BJMTͷجૅ ࣸਅΞοϓϩʔυΞϓϦ࡞Γ ࣗ࡞ΞϓϦͷωοτެ։ ࣗ༝՝୊ΞϓϦ੍࡞ԋश ΄͔ߟ͑த 

  21. ɾUXJUUFSσʔλΛղੳͯ͠ͲͷӺ͕ʹ͗Θ͍ͬͯΔ͔Λௐ΂Δ ɾਓͰϓϨΠͰ͖ΔγϡʔςΟϯάήʔϜͷ࡞੒ ɾ&YDFMͱ૊Έ߹Θͤͨμʔπಘ఺ܭࢉ ɾFMFSOJOH8FCΞϓϦ ɾ੕࠲઎͍8FCΞϓϦ ɾ5XJUUFSൃݴͷղੳ ɾ೔ͷग़ɺ೔ͷೖͷ࣌ࠁΛJ1IPOF΁1VTI௨஌ ࣗ༝՝୊ΞϓϦ੍࡞ԋश ࡢ೥ͷൃදྫ

  22. IUUQXXXqJDLSDPNQIPUPTVTGCQT ࡞ͬͨ΋ͷ͸ཤྺॻʹॻ͚·͢ɻ γεςϜؔ࿈ͷ৬Λड͚Δਓ޲͚ 

  23. Նֶظͷ಺༰Λཧղ͍ͯ͠Δ͜ͱΛલ ఏʹͯ͠ਐΊ·͢ͷͰɺՆֶظΛडߨ ͍ͯ͠ͳ͍৔߹͸೉͍͠ͱࢥ͍·͢ɻ डߨ͞ΕΔ৔߹͸ɺߨٛࢿྉஔ͖৔ϖ ʔδΛಡΜͰલظ෼Λࣗश͓͍ͯͯ͠ ͍ͩ͘͞ɻ डߨ৚݅ IUUQTHJUIVCDPNJHBJHBIJUPUTVCBTIJSVCZ 

  24. ҎԼͷ؀ڥߏஙΛࡁ·͓͍͍ͤͯͯͩ͘͞ɻ ؀ڥߏங 8JOEPXT .BD 3BJMT*OTUBMMFS·ͨ͸7.6CVOUV ͲͪΒΛ࢖ͬͯ΋͔·Θͳ͍Ͱ͢ɻ ՆֶظͰ؀ڥߏஙͨ͠ํ͸ͦͷ؀ڥʹগ͠ίϚϯυΛଧͭ͜ ͱͰ؀ڥߏஙͰ͖·͢ɻ ʢৄ͘͠͸ޙड़ͷʮ؀ڥߏஙࢿྉʯࢀরʣ HFNVQEBUFSBJMTOPSJOPSEPD

    SBJMTW ֬ೝ 3BJMTYͱग़Ε͹0, ࢿྉ࡞੒࣌࠷৽ 
  25. ҎԼͷόʔδϣϯΛ૝ఆ͍ͯ͠·͕͢ɺߨٛ ظؒதʹόʔδϣϯΞοϓ͢ΔͷͰ৽͍͠΋ ͷʹมߋʹͳΔ͔΋͠Ε·ͤΜɻ 3VCZPO3BJMT։ൃ؀ڥ 3VCZQPSQ 3VCZPO3BJMT ೥݄೔ݱࡏͷ࠷৽͸ 

  26. 3VCZ 3BJMT؀ڥߏங ͷࢿྉΛݟͯ؀ڥߏஙΛ͍ͯͩ͘͠͞ɻ ˞͏·͘Ͱ͖ͳ͍৔߹͸ߨٛதʹϑΥϩʔ͠· ͢ͷͰ૬ஊ͍ͯͩ͘͠͞ɻ IUUQTTQFBLFSEFDLDPNJHBJHBCVJMEJOHSVCZEFWFOW ؀ڥߏஙࢿྉ 

  27. એ఻ 

  28. ॻ͍ͨຊ͕ ग़൛͞Ε·ͨ͠ 

  29. ·ͭ΋ͱΏ͖ͻΖ͞Μ͝ਪન 

  30. 

  31. ఆՁ ԁ ‎ ԁ ߪೖ͝ر๬ͷํ͸ޒेཛྷ·Ͱ͝࿈བྷ͍ͩ͘͞ɻ ༧໿੍ 

  32. 5"ᖛ࡚ ࣥචهࣄ 

  33. ٳߨ࿈བྷ ݄೔ ೔ͷߨٛ͸ ٳߨͰ͢ɻ 

  34. 2VFTUJPO 

  35. None
  36. ࢀߟࢿྉ

  37. BCD ࣮ߦ݁Ռ QVUTBCD ॻࣜ 3VCZίʔυ ࣮ߦ݁Ռ TIFMMίϚϯυ MT Q 

    จதͰ͸Ͱॻ͖·͢
  38. ࣗश༻3BJMTࢿྉ ಛʹڭՊॻ͸࢖͍·ͤΜ͕ɺࣗश༻ʹ͸ҎԼͷࢿྉΛ͓קΊ͠·͢ɻ 3BJMT5VUPSJBM XFC IUUQSBJMTUVUPSJBMKQ WFSTJPO  3BJMT(VJEF XFC &OHMJTI

    IUUQHVJEFTSVCZPOSBJMTPSH 3BJMTʹΑΔΞδϟΠϧ8FCΞϓϦέʔγϣϯ։ൃୈ൛ IUUQXXXBNB[PODPKQEQ վగ৽൛جૅ3VCZPO3BJMT IUUQXXXBNB[PODPKQEQ ͨͷ͍͠3VCZ IUUQXXXBNB[PODPKQEQ
  39. ߨٛࢿྉஔ͖৔ աڈͷࢿྉ͕%-Ͱ͖·͢ɻ IUUQTHJUIVCDPNJHBJHBIJUPUTVCBTIJSVCZ

  40. ࡶஊɾ࣭໰༻GBDFCPPLάϧʔϓ IUUQTXXXGBDFCPPLDPNHSPVQTIJUPUTVCBTIJSC ɾՃೖඇՃೖ͸ࣗ༝Ͱ͢ ɾՃೖඇՃೖ͸੒੷ʹؔ܎͠·ͤΜ ɾࢀՃऀҰཡ͸ެ։͞Ε·͢ ɾࢀՃऀ͸ελοϑ ߨࢣɾ5" ͱࡢ೥ɺࠓ೥ͷडߨऀͰ͢ ɾॻ͖ࠐΈ͸ࢀՃऀͷΈݟ͑·͢ ɾر๬ऀ͸ΞΫηεͯ͠ࢀՃਃ੥͍ͯͩ͘͠͞

    ɾࡶஊɺ࣭໰ɺٞ࿦ͳͲԿͰ΋ؾʹͤͣͲ͏ͧʙ ɾ࣭໰ʹ౴͑ΒΕΔਓ͸౴͍͑ͯ͋͛ͯͩ͘͞ ɾߨࢣਞ΋͓౴͑͠·͢ ɾೖͬͨΒܰࣗ͘ݾ঺հ͓Ͷ͕͍͠·͢