<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>subaru-hello</author_name>
  <author_url>https://blog.hatena.ne.jp/subaru-hello/</author_url>
  <blog_title>subaru-hello’s blog</blog_title>
  <blog_url>https://subaru-hello.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>form_withってただフォームの作成に使うためのメソッドなんでしょ。という認識で終わっているので、今後の自分のためにも基本的なところをまとめてみました。 基本概念 &lt;%= form_with model: @user, url: login_path, local: true do |f| %&gt; ・form_withの後には次のパスに送るもの、送る先を記載する ・form_withがControllerに送るとき、HTTPステータスはデフォルトでPOSTになる。つまりcreateアクションに遷移するフォームが生成される。 form_withで値を送信するときの分類 モデルを渡したときは、U…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsubaru-hello.hateblo.jp%2Fentry%2F2021%2F09%2F06%2F215344&quot; title=&quot;form_withの使い方をまとめてみた - subaru-hello’s blog&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>2021-09-06 21:53:44</published>
  <title>form_withの使い方をまとめてみた</title>
  <type>rich</type>
  <url>https://subaru-hello.hateblo.jp/entry/2021/09/06/215344</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
