<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>HaraSho</author_name>
  <author_url>https://blog.hatena.ne.jp/HaraSho/</author_url>
  <blog_title>インゲージ開発者ブログ</blog_title>
  <blog_url>https://blog.ingage.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>バックエンド</anon>
  </categories>
  <description>こんにちは！HaraShoです。 今回は Railsの url_for()が個人的に便利だった話について書きます。 url_for | Railsドキュメント どう便利だったかというと、任意のメソッドを共通でもつControllerが複数ある場合、Controllerを意識せずにURLを生成できる点が便利でした。 具体例を出します。 Re:lationには従量課金のサービスが4つあります。 従量課金の請求額を算出する際、実績値をimportします。 実績値のデータ構造は個々の従量課金によって異なりますが、「実績値をimportする」Actionは共通です。 共通処理を集約するにあたり、Cont…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ingage.jp%2Fentry%2F2023%2F10%2F13%2F092620&quot; title=&quot;url_for()が便利だった！ - インゲージ開発者ブログ&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>2023-10-13 09:26:20</published>
  <title>url_for()が便利だった！</title>
  <type>rich</type>
  <url>https://blog.ingage.jp/entry/2023/10/13/092620</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
