<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xoyip</author_name>
  <author_url>https://blog.hatena.ne.jp/xoyip/</author_url>
  <blog_title>ぴよログ</blog_title>
  <blog_url>https://xoyip.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>Tips</anon>
  </categories>
  <description>Rails 5.0.0.1を使って開発中、Rails4のころのようにroutes.rbに書いたものが思ったように動かなかったのでメモしておきます。 以下のようなroutes.rbを書いて、ただのルート（/）とadmin配下のルート（/admin/）を定義します。 Rails.application.routes.draw do root 'home#index' namespace :admin do root 'home#index' end end そうするとViewではroot_pathやadmin_root_pathといったヘルパーメソッドが使えるはずですが、rake routesなり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxoyip.hatenablog.com%2Fentry%2F2016%2F09%2F27%2F203000&quot; title=&quot;Rails5でnamespace以下のxxx_root_pathヘルパーが定義されなかったので回避した - ぴよログ&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/x/xoyip/20160927/20160927140002.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-09-27 20:30:00</published>
  <title>Rails5でnamespace以下のxxx_root_pathヘルパーが定義されなかったので回避した</title>
  <type>rich</type>
  <url>https://xoyip.hatenablog.com/entry/2016/09/27/203000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
