<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zenpou</author_name>
  <author_url>https://blog.hatena.ne.jp/zenpou/</author_url>
  <blog_title>zenpouの日記</blog_title>
  <blog_url>https://zenpou.hatenadiary.org/</blog_url>
  <categories>
    <anon>rails_tips</anon>
  </categories>
  <description>railsのlink_toメソッドって便利ですが、最近教えてもらったメソッドに link_to_ifというメソッドが有る様です。 link_to_if(condition, name, options = {}, html_options = {}, *parameters_for_method_reference, &amp;block) conditiongがtrueの場合、aタグを表示してくれて、falseの場合は名前だけらしい。 そしてその逆のlink_to_unlessもあった。 link_to_if、link_to_unless、共に便利ですね。 後その他にもlink_to_unless_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzenpou.hatenadiary.org%2Fentry%2F20080610%2F1213083006&quot; title=&quot;便利なlink_to(link_to系メソッドとoptionの紹介) - zenpouの日記&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-06-10 16:30:06</published>
  <title>便利なlink_to(link_to系メソッドとoptionの紹介)</title>
  <type>rich</type>
  <url>https://zenpou.hatenadiary.org/entry/20080610/1213083006</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
