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

一覧画面のFatController/Modelになる理由と向き合ってみた

 一覧画面のFatController/Modelになる理由と向き合ってみた

I consider why controller and model get fat on Ruby on Rails index action.
And I implement the result of three solutions.

Kaoru Hotate

May 30, 2019
Tweet

More Decks by Kaoru Hotate

Other Decks in Technology

Transcript

  1. 

  2. 

  3. 

  4. 

  5. 

  6. ໰୊఺   Πϯελϯεม਺͕৭ʑͳϝιουͰఆٛ͞Εɺ ॲཧΛ௥͍ͮΒ͍  Πϯελϯεม਺Λ΋ͱʹɺ ผͷΠϯελϯεม਺Λఆٛ͢Δ͜ͱ΋͋Δ  QSFQBSF@IPHFϝιουͷॱ൪Λม͑Δͱ

    ಈ͔ͳ͍͜ͱ΋͋Δ  Πϯελϯεม਺ಉ࢜ͷ໊લিಥ͕ى͖Δ͜ͱ΋͋Δ Ұ෦ͷॲཧΛมߋ͍͚ͨͩ͠Ͱ΋ɺ શ෦ͷίʔυΛಡΉඞཁ͕͋Δ
  7. 

  8. 

  9.