Upgrade to Pro — share decks privately, control downloads, hide ads and more …

知っているようで知らない"rails new"の世界 / The World of "rai...

luccafort PRO
September 05, 2025

知っているようで知らない"rails new"の世界 / The World of "rails new" You Think You Know but Don't

September 6th, 2025. ながらRuby会議01の登壇資料です。

luccafort PRO

September 05, 2025

Transcript

75 slides
  1. ओཁͳSNS Twitter: @luccafort GitHub: @luccafort Mixi2: @luccafort ࣗݾ঺հ idɿ@luccafort •

    Kyoto.rb / ؔ੢Rubyձٞ08 /
 Go Conference 2025 ΦʔΨφΠβʔ • Kyoto.go ϑΝ΢ϯμʔ • ϚωʔϑΥϫʔυ ژ౎։ൃڌ఺ॴଐ • 2025೥6݄͔ΒϓϩδΣΫτϚωʔδϟʔʹ ͳΓ·ͨ͠ 2
  2. 9

  3. 10

  4. 1. ίϚϯυղੳ: CLI → Command → ApplicationCommand 2. δΣωϨʔλॳظԽ: AppGenerator.new

    3. Φϓγϣϯॲཧ: implied_optionsઃఆ 4. σΟϨΫτϦ࡞੒: create_root → mkdir 5. ϑΝΠϧੜ੒: ςϯϓϨʔτ͔ΒϑΝΠϧ࡞੒ 6. Bundle Install: bundle install࣮ߦ 7. ؀ڥઃఆ: JS/CSS/Hotwireɺafter_bundle_callbacksͷ࣮ߦ 37 Rails new ࣮ߦॱ ͬ͘͟Γ·ͱΊ
  5. 3. Φϓγϣϯॲཧ: implied_optionsઃఆ 4. σΟϨΫτϦ࡞੒: create_root 5. ϑΝΠϧੜ੒: ςϯϓϨʔτ͔ΒϑΝΠϧ࡞੒ 6.

    Bundle 7. ؀ڥઃఆ: JS/CSS/Hotwireɺafter_bundle_callbacksͷ࣮ߦ 38 Rails new ࣮ߦॱ ͬ͘͟Γ·ͱΊ 1. ίϚϯυղੳ: CLI → Command → ApplicationCommand 2. δΣωϨʔλॳظԽ: AppGenerator.new Rails new ࣮ߦॱ ͬ͘͟Γ·ͱΊ 38 ͕͜͜Θ͔Ε͹ આ໌Ͱ͖ͦ͏ʂ
  6. 59

  7. 60

  8. 72

  9. References • https://github.com/rails/rails/ • Rails Τϯδϯೖ໳ • https://railsguides.jp/engines.html • Rails

    newͷॲཧΛ௥ͬͯΈͨ • https://qiita.com/okuramasafumi/items/707a74af435f321c1fc2 • ਪ͠׆ͱͯ͠ͷrails new • https://kaigionrails.org/2024/talks/sakahukamaki/ • rails new ͨ࣌͠ͷ௥ՃॲཧΛ͔͘ • https://blog.eiel.info/blog/2013/08/01/rails-new-template/
  10. References • Rails6ʹ͓͍ͯɺrails newͨ͋͠ͱʹඪ४ػೳΛؒҾ͍ ͍ͯ͘ͱ͖ʹΈΔ΂͖ͱ͜Ζ • https://shinkufencer.hateblo.jp/entry/2020/11/14/000000 • ActiveSupport::CodeGenerator Ͱ༡΅͏

    • https://developers.freee.co.jp/entry/activesupport-generator • GemɺRailtieϓϥάΠϯɺEngineʢfull/mountableʣͷҧ ͍ͱͦΕͧΕͷجૅ৘ใ • https://qiita.com/kidach1/items/565c2c077ae8d15fe3a8

More Decks by luccafort

Other Decks in Programming