try rails 4

try rails 4

M3 Tech Talk #1 2013/05/24

509e5167fdb3871d6b6e045e34a3e019?s=128

Takayuki Matsubara

May 22, 2013
Tweet

Transcript

  1. !NBHF 5SZ3BJMT

  2. (JU)VCNBHFEFW 5XJUUFS!NBHF

  3. None
  4. ਺ճ͔͠ߦͬͯͳ͍͚Ͳ

  5. ผ݅Ͱ͕͢ 3VCZ)JSPCBͰ-5͢Δ͜ͱʹͳΓ·͠ ͨ ΈΜͳ΋Ԡื͢Ε͹͍͍ͱࢥ͏

  6. ຊ୊

  7. ·ͩϦϦʔε͞Εͯ ͍ͳ͍ʂʂ̍ http://www.flickr.com/photos/anandham/4952020586/

  8. ͋ͱ΋͏গ͠ IUUQXFCMPHSVCZPOSBJMTPSH

  9. 3BJMTSD 3BJMTCFUB͸ਓபײߴ͔ͬͨ

  10. ରԠͨ͜͠ͱ SBJMTVQEBUFίϚϯυ࣮ߦɹ ৽ػೳ΁ͷҠߦ 4UBHJOH؀ڥ΁

  11. SBJMTVQEBUF

  12. (FNpMF gem 'rails', '4.0.0.rc1' $ gem install -v 1.3.0 bundler

    $ bundle update rails
  13. SBJMTVQEBUF ͜ΕΛ࣮ߦͯ͠ͻͨ͢Βࠩ෼ͱʹΒΊ ͬ͜ ඞཁͳͱ͜ΖΛϚʔδ͍ͯ͘͠ $ rake rails:update

  14. DPPLJF 3BJMT͸ॺ໊ վ͟Μ͸Ͱ͖ͳ͍͕؆୯ʹத਎Λݟ ΕΔ 3BJMT͸҉߸Խ EFGBVMU த਎΋؆୯ʹݟΔ͜ͱ͕Ͱ͖ͳ͍

  15. DPPLJF DPOpHJOJUJBMJ[FSTTFDSFU@UPLFOSC 3BJMT .ZBQQ"QQMJDBUJPODPOpHTFDSFU@UPLFO 3BJMT .ZBQQ"QQMJDBUJPODPOpHTFDSFU@LFZ@CBTF

  16. DPPLJF TFDSFU@UPLFOΛ࢒ͭͭ͠ɺ TFDSFU@LFZ@CBTFΛఆٛ͢Δ͜ͱͰ 3BJMTͷDPPLJFʹࣗಈΞοϓάϨʔυ Ͱ΋ݩʹ໭Εͳ͍ͷͰ΍Δલʹ֬ೝ see also: http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#action-pack

  17. UVSCPMJOLT HFNΛίϝϯτΞ΢τʂʂ ΞοϓάϨʔυ͸৻ॏʹ BMMMJOLTBSFUVSCPPOEFGBVMU ৽نϓϩδΣΫτͳΒɻɻɻ

  18. ৽ػೳ΁Ҡߦ

  19. 4USPOH1BSBNFUFS BUUS@BDDFTTJCMF4USPOH1BSBNUFST Ϟσϧʹ༩͑Δύϥϝʔλͷ੹຿͕ί ϯτϩʔϥ΁

  20. "DUJWF.PEFM.PEFM # Rails3 class SampleForm include ActiveModel::Conversion include ActiveModel::Validations extend

    ActiveModel::Naming # লུ def persisted? return false end end
  21. "DUJWF.PEFM.PEFM # Rails3 class SampleForm include ActiveModel::Conversion include ActiveModel::Validations extend

    ActiveModel::Naming # লུ def persisted? return false end end # Rails4 Simple!! class SampleForm include ActiveModel::Model # লུ end
  22. CFGPSFBGUFS@BDUJPO CFGPSF@pMUFSCFGPSF@BDUJPO BGUFS@pMUFSBGUFS@BDUJPO

  23. ͜͜·Ͱൺֱతॱௐ

  24. 4UBHJOH؀ڥ΁

  25. ͋ͬͯΑ͔ͬͨ 4UBHJOH

  26. ̎ͭ໰୊͕ى͖ͨ

  27. ಈ͔ͳ͍ ※Ωϟϓνϟ๨ΕͨͷͰ͕͢ɺ͜Μͳը໘ͩͬͨ

  28. 1BTTFOHFS ݪҼ͸3BJMT#BTF63*Λ࢖͍ͬͯͨ͜ͱ 1BTTFOHFS͕ݹ͍"1*Λݺͼग़͠མͪ Δ ରࡦ͸3BDL#BTF63*Λ࢖͏

  29. ͭղܾ

  30. "TTFUTυί͍ͬͨʁ http://www.flickr.com/photos/peterc8800/3394652160

  31. "TTFUT͕࡞ΒΕ͍ͯͳ͍ ݪҼ͸ೋͭ Ұͭ͸࢓༷มߋ ΋͏Ұͭ͸όάɻɻɻPS[

  32. "TTFUTͷ࢓༷มߋ WFOEPSBTTFUT MJCBTTFUTԼΛࢀর͠ ͳ͘ͳͬͨ ղܾࡦ͸্هʹ഑ஔ͍ͯͨ͠ϑΝΠϧ ΛBQQBTTFUT΁Ҡಈ͢Δ͜ͱ ·ͨ͸DPOpHBTTFUTQSFDPNQJMFΛઃ ఆ See Also:

    https://github.com/rails/rails/pull/7968
  33. "TTFUTͷQSFDPNQJMFόά BQQBTTFUTͱ DPOpHBTTFUTQSFDPNQJMFͰରॲͨ͠ ͍ʂ ͕ɺDPOpHBTTFUTQSFDPNQJMF͕ແࢹ ͞ΕΔόά͕ɻɻɻ·ͩ௚͍ͬͯͳ͍ See Also:https://github.com/rails/sprockets-rails/pull/36

  34. QSFDPNQJMF٧Μͩ

  35. "TTFUT࡞ΒΕͳ͍໰୊ͷରॲ QSFDPNQJMF࢖Θͳ͍ʂʂʂ ଎౓͕ٻΊΒΕΔ؀ڥͰͳ͔ͬͨͷͰ ͻͱ·ͣ͜ΕͰ ϦϦʔε·Ͱʹ௚Δͱ͍͍ͳ ଞਓ೚ͤ

  36. ॴײ 3BJMTҎ߱ͳΒରԠ͸ͦ͜·Ͱ೉͠ ͘ͳ͍ ੵۃతʹਓபΛͱΓʹ͍͘͜ͱͰݟ͑ Δ΋ͷ͕͋Δ ͋ͬͯΑ͔ͬͨ4UBHJOH

  37. ࢀߟ 8&# %#13&447PM 6QHSBEJOHUP3BJMT3BJMT$BTUT ެࣜɿ"(VJEFGPS6QHSBEJOH3VCZPO3BJMT 3BJMT;PNCJF0VUMBXT 6QHSBEJOHUP3BJMT

  38. FOOOE