<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ayaketan</author_name>
  <author_url>https://blog.hatena.ne.jp/ayaketan/</author_url>
  <blog_title>ayaketanのプログラミング勉強日記</blog_title>
  <blog_url>https://ayaketan.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>ルーティングのgetでアクションを指定する方法のメモ。 routes.rbにルーティングを記載して、user_topのindexを呼び出したかった。当初下記のように記載したが、これだとURLがuser_top/indexになってしまう。 get &quot;user_top/index&quot;, :as =&gt; :user_top URLをuser_topにするには、下記のように記載するとよい。 get &quot;user_top&quot;, :to =&gt; &quot;user_top#index&quot;, :as =&gt; :user_top 参考： #400 What's New in Rails 4 - RailsCasts</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fayaketan.hatenablog.com%2Fentry%2F2013%2F11%2F11%2F205927&quot; title=&quot;Rails4 ルーティングのgetでアクションを指定する - ayaketanのプログラミング勉強日記&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>2013-11-11 20:59:27</published>
  <title>Rails4 ルーティングのgetでアクションを指定する</title>
  <type>rich</type>
  <url>https://ayaketan.hatenablog.com/entry/2013/11/11/205927</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
