<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nyarugo</author_name>
  <author_url>https://blog.hatena.ne.jp/nyarugo/</author_url>
  <blog_title>同じにやっても動かない</blog_title>
  <blog_url>https://gagapi.hatenablog.jp/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>railsでscaffoldすると、controllerに redirect_to @modelってのが出来て来ます。 こんな感じ。 def create @model = Model.new(params[:model]) respond_to do |format| if @model.save format.html { redirect_to @model, notice: &quot;model was successfully created.&quot;} format.json { render json: @model, status: :created, location: @model } …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgagapi.hatenablog.jp%2Fentry%2F2013%2F03%2F16%2F102746&quot; title=&quot;redirect_to @model て何よ - 同じにやっても動かない&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>2013-03-16 10:27:46</published>
  <title>redirect_to @model て何よ</title>
  <type>rich</type>
  <url>https://gagapi.hatenablog.jp/entry/2013/03/16/102746</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
