{"id":2760,"date":"2021-11-05T14:56:25","date_gmt":"2021-11-05T05:56:25","guid":{"rendered":"https:\/\/suzutukiblog.com\/?p=2760"},"modified":"2022-01-21T02:09:21","modified_gmt":"2022-01-20T17:09:21","slug":"rails-5","status":"publish","type":"post","link":"https:\/\/suzutukiblog.com\/index.php\/2021\/11\/05\/rails-5\/","title":{"rendered":"Rails\u306e\u307e\u3068\u30811(Rails\u6982\u8981)"},"content":{"rendered":"<h3>\u2460Ruby on Rails\u3068\u306f\uff1f<\/h3>\n<p>Ruby\u3067\u66f8\u304b\u308c\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/p>\n<p>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306b\u5fc5\u8981\u306a\u57fa\u672c\u7684\u306a\u6a5f\u80fd\u304c\u4e88\u3081\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>\u3042\u308b\u7a0b\u5ea6\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u969b\u306e\u30eb\u30fc\u30eb\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u5e45\u5e83\u3044\u30e9\u30a4\u30d6\u30e9\u30ea\u304cGem\u3068\u8a00\u3046\u5f62\u5f0f\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<h3>\u4e3b\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u30b5\u30a4\u30c8<\/h3>\n<p><strong>Airbnb\uff1a<\/strong>\u6c11\u6cca\u30b5\u30a4\u30c8<\/p>\n<p><strong>GitHub\uff1a<\/strong>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406<\/p>\n<p><strong>Square\uff1a<\/strong>\u6c7a\u6e08<\/p>\n<p><strong>\u30af\u30c3\u30af\u30d1\u30c3\u30c9\uff1a<\/strong>\u6599\u7406\u306e\u30ec\u30b7\u30d4\u5171\u6709\u30b5\u30a4\u30c8<\/p>\n<p><strong>freee:\u3000<\/strong>\u4f1a\u8a08\u30bd\u30d5\u30c8<\/p>\n<p>\u8ffd\u8a18\uff1a\u4ed6\u306b\u3082\u7121\u6570\u306b\u3042\u308a\u307e\u3059<\/p>\n<h3>\u2461Rails\u306e\u57fa\u672c\u7406\u5ff5<\/h3>\n<p>DRY\u539f\u5247(\u540c\u3058\u3053\u3068\u3092\u7e70\u308a\u8fd4\u3055\u306a\u3044)<\/p>\n<p>Don&#8217;t Repeat Yourself:DRY<\/p>\n<p>\u8a2d\u5b9a\u3088\u308a\u898f\u7d04\u304c\u512a\u5148\u3055\u308c\u308b<\/p>\n<p>\u30af\u30e9\u30b9\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u540d\u4ed8\u3051\u65b9\u306a\u3069\u306e\u30eb\u30fc\u30eb\u3092\u5b88\u308b<\/p>\n<h3>\u2462MVC\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc\u3068\u306f<\/h3>\n<h3>M:Model(\u4e3b\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u95a2\u9023\u3092\u62c5\u5f53\u3059\u308b)<\/h3>\n<p>\u30c7\u30fc\u30bf\u306e\u7ba1\u7406\u3084\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u3067\u30c7\u30fc\u30bf\u306e\u51e6\u7406\u3092\u884c\u3046\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3059\u308b\u3002<\/p>\n<p>EC\u30b5\u30a4\u30c8\u306e\u4f8b\u3067\u8a71\u3059\u3068<\/p>\n<p>\u5546\u54c1\u304c1\u3064\u58f2\u308c\u305f\u3089\u5728\u5eab\u30921\u3064\u6e1b\u3089\u3057\u3066\u3001<\/p>\n<p>\u8cfc\u5165\u5c65\u6b74\u3092\u4fdd\u5b58\u3059\u308b\u3068\u3044\u3063\u305f\u3088\u3046\u306a\u51e6\u7406\u306f\u30e2\u30c7\u30eb\u306b\u66f8\u304f\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>\u9759\u7684\u306a\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3067\u306f\u3001\u30e2\u30c7\u30eb\u306f\u5fc5\u305a\u3057\u3082\u5fc5\u8981\u3067\u306f\u306a\u3044\u3002<\/p>\n<p>\u9759\u7684\u306a\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3068\u306f\u4f55\u5ea6\u898b\u3066\u3082\u8ab0\u304c\u898b\u3066\u3082\u540c\u3058\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8fd4\u3059\u3060\u3051\u306e\u52d5\u304d\u306e\u306a\u3044\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306e\u3053\u3068\u3002<\/p>\n<p>\u52d5\u7684\u306a\u30da\u30fc\u30b8\u306f\u305d\u306e\u9006\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u3054\u3068\u306b\u898b\u305b\u308b\u30da\u30fc\u30b8\u304c\u5909\u308f\u3063\u305f\u308a\u3059\u308b\u3002<\/p>\n<p>\u4f8b\uff1aYoutube\u306a\u3069<\/p>\n<h3>V:View(\u4e3b\u306bHTML\u3092\u62c5\u5f53)<\/h3>\n<p>\u4e3b\u306bHTML\u3092\u4f5c\u6210\u3059\u308b\u90e8\u5206\u3092\u62c5\u5f53\u3059\u308b\u3002<\/p>\n<p>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u306e\u3067\u5358\u7d14\u306aHTML\u3067\u306f\u306a\u304f\u3001<\/p>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u7d4c\u7531\u3057\u3066\u6e21\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u3001HTML\u306b\u57cb\u3081\u8fbc\u3093\u3067\u30e6\u30fc\u30b6\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fdc\u3058\u3066\u8868\u793a\u5185\u5bb9\u3092\u5909\u3048\u3066\u8fd4\u3059\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>Rails\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067ERB\u3068\u8a00\u3046\u5f62\u5f0f\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3063\u3066HTML\u3092\u66f8\u3044\u3066\u3044\u304f\u3002<\/p>\n<p>\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3046\u3053\u3068\u306b\u3088\u3063\u3066HTML\u306e\u4e2d\u306bRuby\u306e\u30b3\u30fc\u30c9\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u8ffd\u8a18:&lt;%%&gt;&lt;%=%&gt;\u306a\u3069\u3092\u57cb\u3081\u8fbc\u3081\u308b\u3088\uff01<\/p>\n<h3>C:Controller(\u30e2\u30c7\u30eb\u3068\u30d3\u30e5\u30fc\u306e\u4ef2\u4ecb\u5f79)<\/h3>\n<p>\u30e6\u30fc\u30b6\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u30e2\u30c7\u30eb\u3068\u30d3\u30e5\u30fc\u306e\u4ef2\u4ecb\u5f79\u3092\u3057\u3001<\/p>\n<p>\u6700\u7d42\u7684\u306b\u30e6\u30fc\u30b6\u306b\u30da\u30fc\u30b8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8fd4\u3059\u5f79\u5272\u3092\u62c5\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u8ffd\u8a18\uff1a\u30e2\u30c7\u30eb\u304b\u3089\u30c7\u30fc\u30bf\u3092\u3082\u3089\u3044\u30d3\u30e5\u30fc\u306b\u4f7f\u3046\u3088\uff01<\/p>\n<p><a href=\"https:\/\/suzutukiblog.com\/index.php\/2021\/04\/13\/rails-6\/\">\uff12\u306b\u7d9a\u304f<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2460Ruby on Rails\u3068\u306f\uff1f Ruby\u3067\u66f8\u304b\u308c\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306b\u5fc5\u8981\u306a\u57fa\u672c\u7684\u306a\u6a5f\u80fd\u304c\u4e88\u3081\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3002 \u3042\u308b\u7a0b\u5ea6\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u969b\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2764,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[27,13],"tags":[],"class_list":["post-2760","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming-note","category-rails"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/2760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=2760"}],"version-history":[{"count":9,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/2760\/revisions"}],"predecessor-version":[{"id":4485,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/2760\/revisions\/4485"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/media\/2764"}],"wp:attachment":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=2760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=2760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=2760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}