<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ecp</author_name>
  <author_url>https://blog.hatena.ne.jp/ecp/</author_url>
  <blog_title>永遠顧問</blog_title>
  <blog_url>https://ecp.hatenadiary.org/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>Rails で以下のメソッドで 該当アクションへの URL を生成することが出来るけれども、呼ぶ場所によって挙動が違ってちょっとつまずいた。 url_for :controller =&gt; 'user', :action =&gt; 'show', :id =&gt; 100 動かしてるサーバが http://localhost:3000 とすると、以下の様になりました。 Controller内 http://localhost:3000/user/show/100 View, Helper内 /user/show/100 View, Helper 内で絶対URL をとるのに一番簡単そうなのは、config…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fecp.hatenadiary.org%2Fentry%2F20080929%2F1222761274&quot; title=&quot;url_for でつまづく - 永遠顧問&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>2008-09-29 16:54:34</published>
  <title>url_for でつまづく</title>
  <type>rich</type>
  <url>https://ecp.hatenadiary.org/entry/20080929/1222761274</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
