{"id":4359,"date":"2018-06-18T12:34:17","date_gmt":"2018-06-18T03:34:17","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=4359"},"modified":"2023-05-27T22:35:56","modified_gmt":"2023-05-27T13:35:56","slug":"%e3%80%90ruby%e3%80%91%e3%80%8c%e3%83%90%e3%83%83%e3%82%af%e3%83%88%e3%83%ac%e3%83%bc%e3%82%b9%e3%80%8d%e3%81%ae%e8%aa%ad%e3%81%bf%e6%96%b9","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=4359","title":{"rendered":"\u3010Ruby\u3011\u30c7\u30d0\u30c3\u30b0\u306e\u4ed5\u65b9"},"content":{"rendered":"<h2>\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3068\u306f\uff1f<\/h2>\n<p>Ruby\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u306b\u51fa\u529b\u3055\u308c\u308b\u30ed\u30b0\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u306e\u4f8b<\/h2>\n<p>\u4e0b\u8a18\u306e\u4f8b\u306f\u3001Ruby on Rails\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u306e\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u7d61\u3093\u3067\u304f\u308b\u3068\u3001\u8907\u96d1\u306a\u5206\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u304c\u975e\u5e38\u306b\u9577\u304f\u306a\u308a\u307e\u3059\u3002\uff09<\/p>\n<pre class=\"lang:default decode:true\">ActionController::RoutingError (uninitialized constant Users):\r\n\r\nbootsnap (1.3.0) lib\/bootsnap\/load_path_cache\/core_ext\/active_support.rb:53:in `block in load_missing_constant'\r\nbootsnap (1.3.0) lib\/bootsnap\/load_path_cache\/core_ext\/active_support.rb:8:in `without_bootsnap_cache'\r\nbootsnap (1.3.0) lib\/bootsnap\/load_path_cache\/core_ext\/active_support.rb:53:in `rescue in load_missing_constant'\r\nbootsnap (1.3.0) lib\/bootsnap\/load_path_cache\/core_ext\/active_support.rb:42:in `load_missing_constant'\r\nactivesupport (5.2.0) lib\/active_support\/inflector\/methods.rb:283:in `const_get'\r\nactivesupport (5.2.0) lib\/active_support\/inflector\/methods.rb:283:in `block in constantize'\r\nactivesupport (5.2.0) lib\/active_support\/inflector\/methods.rb:281:in `each'\r\nactivesupport (5.2.0) lib\/active_support\/inflector\/methods.rb:281:in `inject'\r\nactivesupport (5.2.0) lib\/active_support\/inflector\/methods.rb:281:in `constantize'<\/pre>\n<p>\u4e0a\u304b\u3089\u9806\u756a\u306b\u3001<span style=\"color: #ff0000;\"><strong>\u30a8\u30e9\u30fc\u306e\u767a\u751f\u5143<\/strong><strong>\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3088\u308a\u539f\u56e0\u306b\u8fd1\u3044\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3067\u304d\u308b<\/strong><\/span>\u306e\u3067\u3001\u3088\u308a\u6ce8\u610f\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4e00\u756a\u4e0b\u306f\u3001\u305d\u306e\u767a\u751f\u5143\u304c\u547c\u3070\u308c\u305f\u6700\u521d\u306e\u30c8\u30ea\u30ac\u30fc\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n<h2>\u4f8b\u5916\u306e\u7a2e\u985e<\/h2>\n<h3>NameError<\/h3>\n<p>\u672a\u5b9a\u7fa9\u306e\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3084\u5b9a\u6570\u3092\u547c\u3073\u51fa\u3057\u305f\u969b\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3067\u3059\u3002<\/p>\n<h3>NoMethodError<\/h3>\n<p>\u5b58\u5728\u3057\u306a\u3044\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u305f\u969b\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3067\u3059\u3002<\/p>\n<h3>TypeError<\/h3>\n<p>\u671f\u5f85\u3057\u306a\u3044\u578b(\u30af\u30e9\u30b9\uff09\u304c\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u6e21\u3055\u308c\u305f\u6642\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc<\/p>\n<h3>ArgumentError<\/h3>\n<p>\u5f15\u6570\u306e\u6570\u304c\u9055\u3063\u305f\u308a\u671f\u5f85\u5024\u3067\u306a\u304b\u3063\u305f\u5834\u5408\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc<\/p>\n<h3>ZeroDivisionError<\/h3>\n<p>\u6574\u6570\u30920\u3067\u5272\u308a\u7b97\u3057\u3088\u3046\u3068\u3057\u305f\u969b\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc<\/p>\n<h3>SystemStackError<\/h3>\n<p>\u30b7\u30b9\u30c6\u30e0\u30b9\u30bf\u30c3\u30af\u304c\u3042\u3075\u308c\u305f\u5834\u5408\uff08\u30e1\u30e2\u30ea\u4e0d\u8db3\uff09\u306e\u969b\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc<\/p>\n<h3>LoadError<\/h3>\n<p>require\u3084load\u304c\u5931\u6557\u3057\u305f\u969b\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc<\/p>\n<h3>SyntaxError<\/h3>\n<p>\u69cb\u6587\u30a8\u30e9\u30fc<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c\u3092\u3057\u305f\u3044\u5834\u5408<\/h2>\n<p>Ruby\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c\u3055\u305b\u305f\u3044\u5834\u5408\u306f<span style=\"color: #ff0000;\"><strong>\u300cByebug\u300d<\/strong><\/span>\u3068\u3044\u3046gem\u3092\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u7528\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u57cb\u3081\u8fbc\u3093\u3067\u30c7\u30d0\u30c3\u30b0\u7528\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u30661\u884c\u305a\u3064\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>IDE(RubyMine)<\/h3>\n<p>\u6709\u511f\u306eIDE\u3067\u3042\u308bRubyMine\u3092\u4f7f\u3048\u3070\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u7528\u306e\u30b3\u30fc\u30c9\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u306a\u304f\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c\u3092\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u8ca9\u58f2\u5143\u306e\u30da\u30fc\u30b8\u3092\u898b\u308c\u3070\u308f\u304b\u308a\u307e\u3059\u304c\u3001<span style=\"color: #ff0000;\"><strong>\u5927\u4f53\u500b\u4eba\u5411\u3051\u3067\u3042\u308c\u3070\u5e74\u95931\u4e07\u5186\u7a0b\u5ea6\u3067\u8cfc\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span>Ruby\u958b\u767a\u304c\u30e1\u30a4\u30f3\u3067\u8da3\u5473\u3067\u3082Ruby\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u65b9\u306f\u958b\u767a\u52b9\u7387\u30a2\u30c3\u30d7\u306e\u305f\u3081\u306b\u5341\u5206\u8cfc\u5165\u3092\u691c\u8a0e\u3057\u3066\u3082\u826f\u3044\u5024\u6bb5\u3067\u306f\u3042\u308a\u307e\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3068\u306f\uff1f Ruby\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u306b\u51fa\u529b\u3055\u308c\u308b\u30ed\u30b0\u306e\u3053\u3068\u3067\u3059\u3002 \u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u306e\u4f8b \u4e0b\u8a18\u306e\u4f8b\u306f\u3001Ruby on Rails\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u306e\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u30d5\u30ec\u30fc [&hellip;]","protected":false},"author":1,"featured_media":4232,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[48],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4359"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4359"}],"version-history":[{"count":10,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4359\/revisions"}],"predecessor-version":[{"id":20480,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4359\/revisions\/20480"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/4232"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4359"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}