{"id":108,"date":"2020-09-12T17:06:22","date_gmt":"2020-09-12T08:06:22","guid":{"rendered":"https:\/\/tech.aoiblog.net\/?p=108"},"modified":"2020-09-13T12:32:05","modified_gmt":"2020-09-13T03:32:05","slug":"%e3%80%90%e5%a4%a7%e4%ba%8b%e3%80%91%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%af%e5%86%8d%e8%b5%b7%e5%8b%95%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/tech.aoiblog.net\/?p=108","title":{"rendered":"Routing Error No route matches\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u6642\u306e\u5bfe\u51e6\u6cd5\u3010\u7d50\u8ad6\u3011\u30ed\u30fc\u30ab\u30eb\u30b5\u30fc\u30d0\u30fc\u306f\u518d\u8d77\u52d5\u3059\u308b"},"content":{"rendered":"\n<p>\u3053\u3093\u3070\u3093\u306f\u3001\u3042\u304a\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u7c21\u5358\u306a\u30df\u30b9\u3092\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f&#8230;\uff01<br>\u305d\u306e\u30df\u30b9\u3092\u3082\u3046\u4e8c\u5ea6\u3068\u3057\u306a\u3044\u3088\u3046\u306b\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Routing Error\u3000No route matches\u7de8\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"m\">\u672c\u65e5\u306e\u52c9\u5f37\u5185\u5bb9<\/h2>\n\n\n\n<ul class=\"m\"><li>Ruby on Rails<\/li><\/ul>\n\n\n\n<p>\u4eca\u65e5\u3082Rails\u306e\u52c9\u5f37\u3060\u301c\uff01<\/p>\n\n\n\n<h2 class=\"m\">Ruby on Rails<\/h2>\n\n\n\n<p>Gemfile\u3092\u7de8\u96c6\u3059\u308b\u3068\u304d\u3002<\/p>\n\n\n\n<h3 class=\"m\">Gemfile<\/h3>\n\n\n\n<p>\u4eca\u56de\u306fGemfile\u306b\u3001<code>gem 'devise'<\/code>\u3092\u8ffd\u8a18\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u5f8c\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u3066<code>bundle install<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066Gem\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u306f\u826f\u3044\u306e\u3067\u3059\u304c\u3001Gem\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u3066<code>rails s<\/code>\u3092control + C\u3067\u4e00\u65e6\u505c\u6b62\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3093\u3067\u3059\u3002<\/p>\n\n\n\n<p><em>\u203b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fGem\u306e\u53cd\u6620\u3059\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u30b5\u30fc\u30d0\u30fc\u8d77\u52d5\u6642\u3060\u304b\u3089\u3002<\/em><\/p>\n\n\n\n<p>\u3053\u308c\u3092\u30dc\u30af\u306f\u3059\u3063\u98db\u3070\u3057\u3066\u9032\u3081\u3066\u3057\u307e\u3044\u307e\u3057\u305f&#8230;\u3002<\/p>\n\n\n\n<p>\u3082\u3061\u308d\u3093\u3001\u305d\u306e\u5f8c\u306b\u300eRouting Error No route matches\u300f\u3068\u8868\u793a\u3055\u308c\u3001\u75db\u3044\u76ee\u306b\u906d\u3044\u307e\u3057\u305f\u306d\u7b11\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u304b\u3089\u306f\u4eca\u65e5\u7fd2\u3063\u305f\u3053\u3068\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<h3 class=\"m\">user_signed_in?\u30e1\u30bd\u30c3\u30c9<\/h3>\n\n\n\n<p>Gem\u306edevise\u3067\u4f7f\u7528\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u3002<br>\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u304b\u306e\u5224\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"m\">unless<\/h3>\n\n\n\n<p><code>if<\/code>\u3068\u540c\u69d8\u306b\u6761\u4ef6\u5f0f\u306e\u8fd4\u308a\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3057\u3066\u304f\u308c\u308b\u69cb\u6587\u3002<\/p>\n\n\n\n<p><code>if<\/code>\u306f\u8fd4\u308a\u5024\u304ctrue\u306e\u3068\u304d\u306belse\u307e\u3067\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u308b\u4e00\u65b9\u3001<code>unless<\/code>\u306ffalse\u306e\u6642\u306belse\u307e\u3067\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u3070\u3093\u306f\u3001\u3042\u304a\u3044\u3067\u3059\u3002 \u4eca\u56de\u306f\u7c21\u5358\u306a\u30df\u30b9\u3092\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f&#8230;\uff01\u305d\u306e\u30df\u30b9\u3092\u3082\u3046\u4e8c\u5ea6\u3068\u3057\u306a\u3044\u3088\u3046\u306b\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002 Routing Error\u3000No route matches\u7de8\u3067\u3059\u3002 \u672c\u65e5\u306e\u52c9\u5f37\u5185 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":100,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.aoiblog.net\/index.php?rest_route=\/wp\/v2\/posts\/108"}],"collection":[{"href":"https:\/\/tech.aoiblog.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.aoiblog.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.aoiblog.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.aoiblog.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=108"}],"version-history":[{"count":8,"href":"https:\/\/tech.aoiblog.net\/index.php?rest_route=\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":126,"href":"https:\/\/tech.aoiblog.net\/index.php?rest_route=\/wp\/v2\/posts\/108\/revisions\/126"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tech.aoiblog.net\/index.php?rest_route=\/wp\/v2\/media\/100"}],"wp:attachment":[{"href":"https:\/\/tech.aoiblog.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.aoiblog.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.aoiblog.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}