<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bottleneck</author_name>
  <author_url>https://blog.hatena.ne.jp/bottleneck/</author_url>
  <blog_title>iビジネス&amp;テクノロジー</blog_title>
  <blog_url>https://bottleneck.hatenadiary.org/</blog_url>
  <categories>
    <anon>メモ</anon>
  </categories>
  <description>(注)動作確認はRails 2.0.1 小ネタですが少し引っかかってしまったので参考まで。Ajaxは画面遷移を伴わないので、例えばデータ作成が成功したら詳細画面に飛ぶような処理をしたい場合、サーバからURLを渡してクライアント側で遷移する処理(location.href)を書きます。以下サンプル。 Controller class HogeController hoge = Hoge.new end def create hoge = Hoge.new(params[:hoge]) if hoge.save render :text =&gt; url_for(:action =&gt; &quot;show&quot;, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbottleneck.hatenadiary.org%2Fentry%2F20071211%2F1197372679&quot; title=&quot;AjaxでRedirect - iビジネス&amp;amp;テクノロジー&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>2007-12-11 20:31:19</published>
  <title>AjaxでRedirect</title>
  <type>rich</type>
  <url>https://bottleneck.hatenadiary.org/entry/20071211/1197372679</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
