<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hsaitou</author_name>
  <author_url>https://blog.hatena.ne.jp/hsaitou/</author_url>
  <blog_title>Choorker's Field Notes.</blog_title>
  <blog_url>https://fnta.hatenablog.com/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>編集画面への導線が二通りあって、編集後は編集前のページに戻るようにして欲しい！というリクエストがあったので対応した。 A画面 → 編集画面（edit,update） → A画面 B画面 → 編集画面（edit,update） → B画面 こんな感じ。下記のような対処をした。 def edit if request.referer.include?(&quot;B画面のURLで一意性のある文字列&quot;) then @back_to = request.referer end end def editで遷移元（request.referer）を判定し、@back_toにURLを格納 &lt;%= f.hidden_f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffnta.hatenablog.com%2Fentry%2F2015%2F02%2F24%2F073702&quot; title=&quot;条件によって更新後の遷移先ページを変える - Choorker&amp;#39;s Field Notes.&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>2015-02-24 07:37:02</published>
  <title>条件によって更新後の遷移先ページを変える</title>
  <type>rich</type>
  <url>https://fnta.hatenablog.com/entry/2015/02/24/073702</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
