<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>trench</author_name>
  <author_url>https://blog.hatena.ne.jp/trench/</author_url>
  <blog_title>Lazy Technology</blog_title>
  <blog_url>https://trench.hatenadiary.org/</blog_url>
  <categories>
    <anon>rails</anon>
    <anon>覚書</anon>
  </categories>
  <description>date_selectヘルパーは引数で渡したインスタンス名とメソッド名から年月日の選択状態を自動的に判断してくれて便利なのだけれど、インスタンスがローカル変数だと値を読み取ってくれず、常に最新の日付になってしまうと言う問題がある。 date_select(object_name, attribute_name) 上記のようなコードの場合、object_nameじゃなくて@object_nameに目的のインスタンスが入ってなきゃダメだった。 date_selectに限らず全般的にそうなのかも。スコープが原因なのかなぁ。 基本的に編集画面で表示されるインスタンスは一つだろうからそんなに多発する問題…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftrench.hatenadiary.org%2Fentry%2F20070609%2F1181390258&quot; title=&quot; date_selectヘルパーの注意点 - Lazy Technology&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-06-09 20:57:38</published>
  <title> date_selectヘルパーの注意点</title>
  <type>rich</type>
  <url>https://trench.hatenadiary.org/entry/20070609/1181390258</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
