<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lazy_skunk</author_name>
  <author_url>https://blog.hatena.ne.jp/lazy_skunk/</author_url>
  <blog_title>ちんぱんの雑記</blog_title>
  <blog_url>https://lazy-skunk.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>モデルが担う処理はモデル側に置くべきだよなあという話。某環境大臣を想起するが、1 = 1 であることを再確認しているような雑記です。 Ruby も Rails も初心者なので学習しながら開発している。それでもモデルクラスが空っぽで処理がコントローラーに集まっているのはどうしても気になる。 役割分担の話だから Ruby の経験はあまり関係ないのかもしれない。 コントローラーにもデータを扱う処理は書けるし、想定どおりに動く。だからといって、何でもそこへ置いてよいわけではないはず。リクエストを受け付ける処理もデータや業務上のルールを扱う処理も全部ここでやるのか？とは思ってしまう。 もちろん全部をモデ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flazy-skunk.hatenablog.com%2Fentry%2F2024%2F08%2F01%2F235300&quot; title=&quot;役割分担はしっかりしよう - ちんぱんの雑記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-08-01 23:53:00</published>
  <title>役割分担はしっかりしよう</title>
  <type>rich</type>
  <url>https://lazy-skunk.hatenablog.com/entry/2024/08/01/235300</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
