Slide 1

Slide 1 text

ൃചͰ͖ͯΑ͔ͬͨ Kaigi on Rails new(2020/7/25) sugamasao [email protected]

Slide 2

Slide 2 text

ͩΕʁ HN:sugamasao PN:͕͢ΘΒ ·͞ͷΓ Rubyྺ : 14೥͘Β͍ Railsྺ : 10೥͘Β͍ • WebΞϓϦέʔγϣϯϓϩάϥϚʔ • Rubyʹؔ͢Δॻ੶ͷࣥච׆ಈ

Slide 3

Slide 3 text

ࣥචྺ 2013 2019 2014 2018 2017 2020

Slide 4

Slide 4 text

ࣥචྺ 2013 2019 2014 2018 2017 2020 ࠓ೔ͷ࿩

Slide 5

Slide 5 text

͓Αͦ6೥ӽ͠ʹ ύʔϑΣΫτRuby on Railsͱ͍͏ॻ੶ ΛվగͰ͖ͨͱ͍͏ ͓࿩Λ͠·͢

Slide 6

Slide 6 text

ΑΖ͘͠ ͓Ͷ͕͍͠·͢

Slide 7

Slide 7 text

ڞஶ ϝϯόʔ

Slide 8

Slide 8 text

୭1ਓ͚ܽͯ΋ ग़൛·Ͱ౸ୡͰ ͖ͳ͔ͬͨ ʢͷͰɺຊ౰ʹײँ͔͠ͳ͍ʣ

Slide 9

Slide 9 text

౸ୡͰ͖ͳ͔ͬͨϩά ॳ൛࣌୅ͷίϛοτ

Slide 10

Slide 10 text

౸ୡͰ͖ͳ͔ͬͨϩά Ұॠͷ΍Δؾ

Slide 11

Slide 11 text

౸ୡͰ͖ͳ͔ͬͨϩά ͍Α͍Αຊ౰ʹ΍Δ͔͠ͳ͘ͳͬͨ࣌

Slide 12

Slide 12 text

౸ୡͰ͖ͳ͔ͬͨϩά ͜͜ͰҰମͳʹ͕ىͬͨ͜ͷ͔? ͦͷṖΛղ͖໌͔͢΂͘զʑ͸ΞϚκϯͷԞ஍΁ͱ޲͔ͬͨ

Slide 13

Slide 13 text

2017/09ʙ2018/02 վగΛ΍Γ࢝Ί͕ͨ๞͖(ry

Slide 14

Slide 14 text

2018/02ʙ2018/10 ແ෩

Slide 15

Slide 15 text

2018/02ʙ2018/10 ʢແ෩ͳঢ়ଶʹରͯ͠ʣ ୲౰ฤूऀࢯ ʮύʔϑΣΫτRuby on Railsͷ४උӡಈ ͱͯ͠1࡭ϜοΫຊΛग़͠·͠ΐ͏͔ʂʯ ʮ͑ͬʯʮ͑ͬʯ

Slide 16

Slide 16 text

2018/11ʙ2019/10

Slide 17

Slide 17 text

2018/11ʙ2019/10 https://twitter.com/igaiga555/status/1186457440612544513 ग़ɺग़ʙωλόϨΣʙ

Slide 18

Slide 18 text

४උӡಈͯ͠·ͨ͠

Slide 19

Slide 19 text

ύRailsվగʹ๋͛ͨओͳ೥݄ 1೥9ϲ݄͘Β͍΍ͬͯͨͬΆ͍

Slide 20

Slide 20 text

ύRailsվగʹ๋͛ͨओͳ೥݄ @igaiga555͞Μ @_yasaichi͞Μ ͕ࢀըͯ͘͠Εͨ࣌ظ

Slide 21

Slide 21 text

ύRailsվగʹ๋͛ͨओͳ೥݄ @igaiga555͞Μ @_yasaichi͞Μ ͕ࢀըͯ͘͠Εͨ࣌ظ Ͳ͏ݟͯ΋౔ஃ৔Ͱ͢ɻຊ౰ʹ ͋Γ͕ͱ͏͍͟͝·ͨ͠ ʢຊ౰ʹʂʣ

Slide 22

Slide 22 text

ͦΜͳײ͡ͰͰ͖ͨͷ͕ ύʔϑΣΫτRuby on Railsʲ૿ิվగ൛ʳ Ͱ͢

Slide 23

Slide 23 text

Part1ɹRails ʙ overview 1ষɹRuby on Railsͷ֓ཁ 2ষɹRuby on RailsͱMVC 3ষɹԡ͓͖͍͑ͯͨ͞Railsͷجຊػೳ ͬ͘͟Γݟॴ • جຊతͳRailsͷ࢖͍ํʹ͍ͭͯɺςΩετͷϒϥο γϡΞοϓ΍ղઆ಺༰ͷΞοϓσʔτ • 3ষͰ͸ओʹ `rails` ίϚϯυͰར༻Ͱ͖ΔίϚϯυ܈ ͔ΒݟΔػೳͷ঺հʢྫ͑͹credentialsͳͲʣ

Slide 24

Slide 24 text

Part2ɹRailsͷपล஌ࣝ 4ষɹϑϩϯτΤϯυͷ։ൃख๏ 5ষɹRailsඪ४ͷػೳΛ׆༻ͯ͠ૉૣ͘ػೳ࣮૷͢Δ ͬ͘͟Γݟॴ • 4ষͰ͸Webpacker/Sprockets(CSS޲͚)΍ΈΜͳେ ޷͖stimulusͷղઆͳͲΛ͍ͯ͠ΔΑ • 5ষͰ͸ActiveStorageͳͲɺRails͕ఏڙ͍ͯ͠Δศ རίϯϙʔωϯτͷղઆΛ͍ͯ͠ΔΑ

Slide 25

Slide 25 text

Part3ɹWebΞϓϦέʔγϣϯ։ൃ 6ষɹRailsΞϓϦέʔγϣϯ։ൃ 7ষɹRailsΞϓϦέʔγϣϯͷςετ ͬ͘͟Γݟॴ • ॳ൛Ͱ΋࡞੒ͨ͠AwesomeEventsΛݱ୅༻ʹϦϝΠΫ͠ ͍ͯΔΑ • ςετ͸minitestʹม͑·ͨ͠ • ίʔυ͸Web্ʹ͋Γɺষ୯ҐͰλάͳͲଧͬͯ͋Δͱ͍ ͏ҒۀΛୡ੒͍ͯ͠·͢ • https://github.com/perfect-ruby-on-rails/awesome_events

Slide 26

Slide 26 text

Part4ɹRailsΞϓϦέʔγϣϯͷ֦ுɾӡ༻ 8ষɹRailsΞϓϦέʔγϣϯ֦ு 9ষɹίʔυ඼࣭Λ্͛Δ 10ষɹίϯςφΛར༻ͨ͠RailsΞϓϦέʔγϣϯͷӡ༻ ͬ͘͟Γݟॴ • CI΍gemͷΞοϓσʔτͳͲɺݱ୅ͷWebΞϓϦέʔγϣ ϯͰඞཁͳ׆ಈʹ͍ͭͯղઆ͍ͯ͠ΔΑ • ୯ʹRailsΛDockerͰಈ͔͢ɺͰ͸ͳ͘Ωϟογϡͷར༻ํ ๏ͳͲݱ࣮Λݟਾ͑ͨίϯςφӡ༻ํ๏ͳͲͷղઆΛͯ͠ ͍ΔΑ

Slide 27

Slide 27 text

Part5ɹΤΩεύʔτRails 11ষɹෳࡶͳυϝΠϯΛදݱ͢Δ 12ষɹෳࡶͳϢʔεέʔεΛ࣮ݱ͢Δ 13ষɹෳࡶͳσʔλૢ࡞Λ࣮૷͢Δ ͬ͘͟Γݟॴ • Ͳͷষ΋ʮී௨ʹRailsΛ։ൃ͍ͯ͠ΔͱΩπ͘ͳͬͯ͘ Δʯ࣌ͷͲͷΑ͏ʹίʔυΛղ͖΄͙͍ͯ͘͠ͱྑ͍͔ղ આ͍ͯ͠ΔΑ

Slide 28

Slide 28 text

ύRails/ύʔϑΣΫτRails ͳͲͱఴ͑ͯײ૝ΛπΠʔ τ͍͚ͯͨͩ͠Δͱஶऀ͕ͨͪتͼ·͢ʂ☺ ·ͨɺޡࣈ୤ࣈͳͲΛൃݟͨ͠ࡍ͸gihyo͞Μͷα ϙʔτϖʔδ͔ɺஶऀͬΆ͍ਓʹڭ͑ͯ΋Β͑Δͱॿ ͔Γ·͢ ࠷ޙʹ