<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsukofu</author_name>
  <author_url>https://blog.hatena.ne.jp/atsukofu/</author_url>
  <blog_title>atsukofu’s blog</blog_title>
  <blog_url>https://atsukofu.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>TECH::CAMPで勉強し始めて12週目。 またまた、基本を忘れているのでアウトプットして頭に焼き付けます。 今回は、これまたよく使う link_toを使用したリンクの作成。 カリキュラムでは、 &lt;a&gt;ダグは使わないようにしましょう！ リンク先はパスを指定する方法で記載しましょう！ とあったので、/posts/index とか書きがちなところを頑張ってパスで記載します。 基本のlink_to 今回はerbで書きます。 &lt;%= link_to &quot;新規投稿&quot;, new_post_path %&gt; この記載で下図のようなようなビューになります。 &lt;a&gt;タグと同じようになりましたね。 広範囲のlink…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsukofu.hatenablog.com%2Fentry%2F2020%2F05%2F26%2F225547&quot; title=&quot; link_toの使い方 - atsukofu’s blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/a/atsukofu/20200526/20200526223250.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-26 22:55:47</published>
  <title> link_toの使い方</title>
  <type>rich</type>
  <url>https://atsukofu.hatenablog.com/entry/2020/05/26/225547</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
