{"id":2276,"date":"2019-02-25T00:10:40","date_gmt":"2019-02-24T15:10:40","guid":{"rendered":"http:\/\/www.cotegg.com\/blog\/?p=2276"},"modified":"2019-02-25T00:10:40","modified_gmt":"2019-02-24T15:10:40","slug":"%e3%80%90rails%e3%80%91devise%e3%82%92%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%8c%96%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.cotegg.com\/blog\/?p=2276","title":{"rendered":"\u3010Rails\u3011devise\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b"},"content":{"rendered":"<p>\u3053\u3093\u3070\u3093\u306f<\/p>\n<p>rails\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u4f5c\u308b\u6642\u306bdevise\u3092\u4f7f\u3046\u65b9\u306f\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u30a8\u30e9\u30fc\u6587\u3082\u304d\u3061\u3093\u3068\u51fa\u3057\u3066\u304f\u308c\u307e\u3059\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u82f1\u8a9e\u8868\u793a\u306a\u306e\u3067\u65e5\u672c\u8a9e\u8868\u793a\u306b\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>rails\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f5.2\u304c\u524d\u63d0\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5148\u305a\u306f<a href=\"https:\/\/github.com\/svenfuchs\/rails-i18n\" rel=\"noopener\" target=\"_blank\">rails-i18n<\/a>\u3068\u3044\u3046gem\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\r\ngem 'rails-i18n', '~&gt; 5.1'\r\n<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089config\/application.rb\u306b\u4e0b\u8a18\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\r\nclass Application &lt; Rails::Application\r\n  config.load_defaults 5.2\r\n\r\n  # \u4ee5\u4e0b\u3092\u8ffd\u8a18\u3059\u308b\r\n  config.i18n.default_locale = :ja\r\n\r\nend\r\n<\/pre>\n<p>\u6b21\u306bdevise.ja.yml\u3092config\/locales\u914d\u4e0b\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b<a href=\"https:\/\/qiita.com\/MasatoYoshioka@github\/items\/8d910e793e7c485403bb\" rel=\"noopener\" target=\"_blank\">\u3053\u306e\u8a18\u4e8b<\/a>\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u30bd\u30fc\u30b9\u3092\u30b3\u30d4\u30fc\u3057\u3066devise.ja.yml\u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<p>rails server\u3092\u8d77\u52d5\u3057\u3066\u3044\u305f\u3089\u3001\u4e00\u65e6\u518d\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u308c\u3067devise\u306e\u30a8\u30e9\u30fc\u6587\u7b49\u304c\u65e5\u672c\u8a9e\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u3070\u3093\u306f rails\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u4f5c\u308b\u6642\u306bdevise\u3092\u4f7f\u3046\u65b9\u306f\u591a\u3044\u306e\u3067\u306f\u306a &#8230; <\/p>\n","protected":false},"author":101012,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[7],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Rails\u3011devise\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cotegg.com\/blog\/?p=2276\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Rails\u3011devise\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\" \/>\n<meta property=\"og:description\" content=\"\u3053\u3093\u3070\u3093\u306f rails\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u4f5c\u308b\u6642\u306bdevise\u3092\u4f7f\u3046\u65b9\u306f\u591a\u3044\u306e\u3067\u306f\u306a ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cotegg.com\/blog\/?p=2276\" \/>\n<meta property=\"og:site_name\" content=\"\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/COTegg.japan\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-24T15:10:40+00:00\" \/>\n<meta name=\"author\" content=\"asakos\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cotegg_japan\" \/>\n<meta name=\"twitter:site\" content=\"@cotegg_japan\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"asakos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2276#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2276\"},\"author\":{\"name\":\"asakos\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/eabce460c5ae1b67a47e64637cb2ec3f\"},\"headline\":\"\u3010Rails\u3011devise\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b\",\"datePublished\":\"2019-02-24T15:10:40+00:00\",\"dateModified\":\"2019-02-24T15:10:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2276\"},\"wordCount\":47,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\"},\"articleSection\":[\"\u6280\u8853\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.cotegg.com\/blog\/?p=2276#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2276\",\"url\":\"https:\/\/www.cotegg.com\/blog\/?p=2276\",\"name\":\"\u3010Rails\u3011devise\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#website\"},\"datePublished\":\"2019-02-24T15:10:40+00:00\",\"dateModified\":\"2019-02-24T15:10:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2276#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cotegg.com\/blog\/?p=2276\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2276#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.cotegg.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Rails\u3011devise\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#website\",\"url\":\"https:\/\/www.cotegg.com\/blog\/\",\"name\":\"COTegg\u306e\u30d0\u30b1\u30c4\",\"description\":\"- Bucket of cotegg -\",\"publisher\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.cotegg.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\",\"name\":\"COTegg Inc.\",\"url\":\"https:\/\/www.cotegg.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png\",\"contentUrl\":\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png\",\"width\":176,\"height\":60,\"caption\":\"COTegg Inc.\"},\"image\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/COTegg.japan\/\",\"https:\/\/twitter.com\/cotegg_japan\",\"https:\/\/www.instagram.com\/cotegg_japan\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/eabce460c5ae1b67a47e64637cb2ec3f\",\"name\":\"asakos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/54e850f2929db050ecd3dadaa9f93ef6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/54e850f2929db050ecd3dadaa9f93ef6?s=96&d=mm&r=g\",\"caption\":\"asakos\"},\"url\":\"https:\/\/www.cotegg.com\/blog\/?author=101012\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Rails\u3011devise\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cotegg.com\/blog\/?p=2276","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Rails\u3011devise\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","og_description":"\u3053\u3093\u3070\u3093\u306f rails\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u4f5c\u308b\u6642\u306bdevise\u3092\u4f7f\u3046\u65b9\u306f\u591a\u3044\u306e\u3067\u306f\u306a ...","og_url":"https:\/\/www.cotegg.com\/blog\/?p=2276","og_site_name":"\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","article_publisher":"https:\/\/www.facebook.com\/COTegg.japan\/","article_published_time":"2019-02-24T15:10:40+00:00","author":"asakos","twitter_card":"summary_large_image","twitter_creator":"@cotegg_japan","twitter_site":"@cotegg_japan","twitter_misc":{"\u57f7\u7b46\u8005":"asakos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cotegg.com\/blog\/?p=2276#article","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2276"},"author":{"name":"asakos","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/eabce460c5ae1b67a47e64637cb2ec3f"},"headline":"\u3010Rails\u3011devise\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b","datePublished":"2019-02-24T15:10:40+00:00","dateModified":"2019-02-24T15:10:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2276"},"wordCount":47,"commentCount":0,"publisher":{"@id":"https:\/\/www.cotegg.com\/blog\/#organization"},"articleSection":["\u6280\u8853"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cotegg.com\/blog\/?p=2276#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cotegg.com\/blog\/?p=2276","url":"https:\/\/www.cotegg.com\/blog\/?p=2276","name":"\u3010Rails\u3011devise\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/#website"},"datePublished":"2019-02-24T15:10:40+00:00","dateModified":"2019-02-24T15:10:40+00:00","breadcrumb":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2276#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cotegg.com\/blog\/?p=2276"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cotegg.com\/blog\/?p=2276#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cotegg.com\/blog"},{"@type":"ListItem","position":2,"name":"\u3010Rails\u3011devise\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b"}]},{"@type":"WebSite","@id":"https:\/\/www.cotegg.com\/blog\/#website","url":"https:\/\/www.cotegg.com\/blog\/","name":"COTegg\u306e\u30d0\u30b1\u30c4","description":"- Bucket of cotegg -","publisher":{"@id":"https:\/\/www.cotegg.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cotegg.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.cotegg.com\/blog\/#organization","name":"COTegg Inc.","url":"https:\/\/www.cotegg.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png","contentUrl":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png","width":176,"height":60,"caption":"COTegg Inc."},"image":{"@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/COTegg.japan\/","https:\/\/twitter.com\/cotegg_japan","https:\/\/www.instagram.com\/cotegg_japan\/"]},{"@type":"Person","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/eabce460c5ae1b67a47e64637cb2ec3f","name":"asakos","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/54e850f2929db050ecd3dadaa9f93ef6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/54e850f2929db050ecd3dadaa9f93ef6?s=96&d=mm&r=g","caption":"asakos"},"url":"https:\/\/www.cotegg.com\/blog\/?author=101012"}]}},"_links":{"self":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2276"}],"collection":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/101012"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2276"}],"version-history":[{"count":1,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2276\/revisions"}],"predecessor-version":[{"id":2277,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2276\/revisions\/2277"}],"wp:attachment":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}