{"id":2579,"date":"2019-07-07T23:57:27","date_gmt":"2019-07-07T14:57:27","guid":{"rendered":"http:\/\/www.cotegg.com\/blog\/?p=2579"},"modified":"2019-07-23T02:20:32","modified_gmt":"2019-07-22T17:20:32","slug":"rails-%e3%82%a8%e3%83%a9%e3%83%bc-unable-to-convert-unpermitted-parameters-to-hash-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/www.cotegg.com\/blog\/?p=2579","title":{"rendered":"[Rails] \u30a8\u30e9\u30fc unable to convert unpermitted parameters to hash \u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u4f50\u85e4\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306fRails\u306epermit!\u306b\u3064\u3044\u3066\u306e\u5099\u5fd8\u9332\u3067\u3059\u3002<\/p>\n<h2>\u30a8\u30e9\u30fc\u5185\u5bb9<\/h2>\n<p><code>unable to convert unpermitted parameters to hash<\/code><\/p>\n<p><a href=\"http:\/\/www.fatfreecrm.com\/\">FatFree<\/a>\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u6700\u4e2d\u306b\u906d\u9047\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3069\u3046\u3084\u3089\u3001\u8a31\u53ef\u3055\u308c\u3066\u306a\u3044\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u30cf\u30c3\u30b7\u30e5\u306b\u3067\u304d\u307e\u305b\u3093\u3002\u3068\u6012\u3089\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u89e3\u6c7a\u6cd5<\/h2>\n<p><code>params[:user].permit!<\/code><\/p>\n<p>\u3053\u308c\u3067user\u3068\u3001\u305d\u3053\u306b\u30cd\u30b9\u30c8\u3055\u308c\u3066\u3044\u308b\u30cf\u30c3\u30b7\u30e5\u5168\u3066\u304c\u8a31\u53ef\u3055\u308c\u305f\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001Rails\u30ac\u30a4\u30c9\u306b\u3082\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8f09\u3057\u3066\u3042\u308b\u306e\u3067\u3001\u4f7f\u7528\u3059\u308b\u969b\u306f\u8981\u6ce8\u610f\u3067\u3059\u306d\u3002<\/p>\n<blockquote><p><code>permit!<\/code>\u306f\u304f\u308c\u3050\u308c\u3082\u614e\u91cd\u306b\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002\u73fe\u5728\u306e\u30e2\u30c7\u30eb\u306e\u5c5e\u6027\u306f\u3082\u3061\u308d\u3093\u3001\u5c06\u6765\u30e2\u30c7\u30eb\u306b\u8ffd\u52a0\u3055\u308c\u308b\u5c5e\u6027\u3082\u4e00\u62ec\u3067\u8a31\u53ef\u3057\u3066\u3057\u307e\u3046\u305f\u3081\u3067\u3059\u3002<\/p><\/blockquote>\n<p>\uff08\u5f15\u7528\u5143: <a href=\"https:\/\/railsguides.jp\/action_controller_overview.html#strong-parameters\">Action Controller \u306e\u6982\u8981 &#8211; Rails \u30ac\u30a4\u30c9<\/a>\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u4f50\u85e4\u3067\u3059\u3002 \u4eca\u56de\u306fRails\u306epermit!\u306b\u3064\u3044\u3066\u306e\u5099\u5fd8\u9332\u3067\u3059\u3002  &#8230; <\/p>\n","protected":false},"author":12,"featured_media":2393,"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>[Rails] \u30a8\u30e9\u30fc unable to convert unpermitted parameters to hash \u306b\u3064\u3044\u3066 | \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=2579\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Rails] \u30a8\u30e9\u30fc unable to convert unpermitted parameters to hash \u306b\u3064\u3044\u3066 | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\" \/>\n<meta property=\"og:description\" content=\"\u3053\u3093\u306b\u3061\u306f\u3002\u4f50\u85e4\u3067\u3059\u3002 \u4eca\u56de\u306fRails\u306epermit!\u306b\u3064\u3044\u3066\u306e\u5099\u5fd8\u9332\u3067\u3059\u3002 ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cotegg.com\/blog\/?p=2579\" \/>\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-07-07T14:57:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-22T17:20:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2019\/03\/top.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1308\" \/>\n\t<meta property=\"og:image:height\" content=\"872\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"saton\" \/>\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=\"saton\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2579#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2579\"},\"author\":{\"name\":\"saton\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/93ca0e749253dcd8fc2c4cd8dd5c6a1f\"},\"headline\":\"[Rails] \u30a8\u30e9\u30fc unable to convert unpermitted parameters to hash \u306b\u3064\u3044\u3066\",\"datePublished\":\"2019-07-07T14:57:27+00:00\",\"dateModified\":\"2019-07-22T17:20:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2579\"},\"wordCount\":18,\"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=2579#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2579\",\"url\":\"https:\/\/www.cotegg.com\/blog\/?p=2579\",\"name\":\"[Rails] \u30a8\u30e9\u30fc unable to convert unpermitted parameters to hash \u306b\u3064\u3044\u3066 | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#website\"},\"datePublished\":\"2019-07-07T14:57:27+00:00\",\"dateModified\":\"2019-07-22T17:20:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2579#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cotegg.com\/blog\/?p=2579\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=2579#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.cotegg.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Rails] \u30a8\u30e9\u30fc unable to convert unpermitted parameters to hash \u306b\u3064\u3044\u3066\"}]},{\"@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\/93ca0e749253dcd8fc2c4cd8dd5c6a1f\",\"name\":\"saton\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a05e1ac3be4a1ef1348bf2b203cfce7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a05e1ac3be4a1ef1348bf2b203cfce7?s=96&d=mm&r=g\",\"caption\":\"saton\"},\"url\":\"https:\/\/www.cotegg.com\/blog\/?author=12\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Rails] \u30a8\u30e9\u30fc unable to convert unpermitted parameters to hash \u306b\u3064\u3044\u3066 | \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=2579","og_locale":"ja_JP","og_type":"article","og_title":"[Rails] \u30a8\u30e9\u30fc unable to convert unpermitted parameters to hash \u306b\u3064\u3044\u3066 | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","og_description":"\u3053\u3093\u306b\u3061\u306f\u3002\u4f50\u85e4\u3067\u3059\u3002 \u4eca\u56de\u306fRails\u306epermit!\u306b\u3064\u3044\u3066\u306e\u5099\u5fd8\u9332\u3067\u3059\u3002 ...","og_url":"https:\/\/www.cotegg.com\/blog\/?p=2579","og_site_name":"\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","article_publisher":"https:\/\/www.facebook.com\/COTegg.japan\/","article_published_time":"2019-07-07T14:57:27+00:00","article_modified_time":"2019-07-22T17:20:32+00:00","og_image":[{"width":1308,"height":872,"url":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2019\/03\/top.jpg","type":"image\/jpeg"}],"author":"saton","twitter_card":"summary_large_image","twitter_creator":"@cotegg_japan","twitter_site":"@cotegg_japan","twitter_misc":{"\u57f7\u7b46\u8005":"saton"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cotegg.com\/blog\/?p=2579#article","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2579"},"author":{"name":"saton","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/93ca0e749253dcd8fc2c4cd8dd5c6a1f"},"headline":"[Rails] \u30a8\u30e9\u30fc unable to convert unpermitted parameters to hash \u306b\u3064\u3044\u3066","datePublished":"2019-07-07T14:57:27+00:00","dateModified":"2019-07-22T17:20:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2579"},"wordCount":18,"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=2579#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cotegg.com\/blog\/?p=2579","url":"https:\/\/www.cotegg.com\/blog\/?p=2579","name":"[Rails] \u30a8\u30e9\u30fc unable to convert unpermitted parameters to hash \u306b\u3064\u3044\u3066 | \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/#website"},"datePublished":"2019-07-07T14:57:27+00:00","dateModified":"2019-07-22T17:20:32+00:00","breadcrumb":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=2579#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cotegg.com\/blog\/?p=2579"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cotegg.com\/blog\/?p=2579#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cotegg.com\/blog"},{"@type":"ListItem","position":2,"name":"[Rails] \u30a8\u30e9\u30fc unable to convert unpermitted parameters to hash \u306b\u3064\u3044\u3066"}]},{"@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\/93ca0e749253dcd8fc2c4cd8dd5c6a1f","name":"saton","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a05e1ac3be4a1ef1348bf2b203cfce7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a05e1ac3be4a1ef1348bf2b203cfce7?s=96&d=mm&r=g","caption":"saton"},"url":"https:\/\/www.cotegg.com\/blog\/?author=12"}]}},"_links":{"self":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2579"}],"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\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2579"}],"version-history":[{"count":4,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2579\/revisions"}],"predecessor-version":[{"id":2589,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2579\/revisions\/2589"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/2393"}],"wp:attachment":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}