<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nm777taka</author_name>
  <author_url>https://blog.hatena.ne.jp/nm777taka/</author_url>
  <blog_title>nm777takaの日記</blog_title>
  <blog_url>https://nm777taka.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>編集(editアクション) newで作ったモデルを編集するためには、editアクションを実行する。 edit用ページへのリンク(index.html.erb) &lt;%= link_to &quot;[Edit]&quot;, edit_project_path(project.id) %&gt; 編集対象のモデルのidを一緒に渡す必要がある。 editアクション def edit @project = Project.find(params[:id]); end editのViewを作る editのviewはnewと同様にフォームとボタンがある。railsのDRYに沿って、共通部分は共通化していく。 パーシャル 新たに_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnm777taka.hatenablog.com%2Fentry%2F2014%2F03%2F11%2F143120&quot; title=&quot;EditとUpdateアクション - nm777takaの日記&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>2014-03-11 14:31:20</published>
  <title>EditとUpdateアクション</title>
  <type>rich</type>
  <url>https://nm777taka.hatenablog.com/entry/2014/03/11/143120</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
