{"id":43,"date":"2024-09-09T13:19:29","date_gmt":"2024-09-09T04:19:29","guid":{"rendered":"https:\/\/dexall.co.jp\/articles\/?p=43"},"modified":"2025-03-24T08:55:06","modified_gmt":"2025-03-23T23:55:06","slug":"ruby-on-rails-%e3%83%ab%e3%83%bc%e3%83%86%e3%82%a3%e3%83%b3%e3%82%b0%e5%ae%8c%e5%85%a8%e3%82%ac%e3%82%a4%e3%83%89%ef%bc%9a%e5%9f%ba%e7%a4%8e%e3%81%8b%e3%82%89%e5%bf%9c%e7%94%a8%e3%81%be%e3%81%a7","status":"publish","type":"post","link":"https:\/\/dexall.co.jp\/articles\/?p=43","title":{"rendered":"Ruby on Rails \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u5b8c\u5168\u30ac\u30a4\u30c9\uff1a\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u89e3\u8aac\u3059\u308b10\u500b\u306e\u30c6\u30af\u30cb\u30c3\u30af"},"content":{"rendered":"\n<p>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306b\u304a\u3044\u3066\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u975e\u5e38\u306b\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002<br>\u7279\u306b Ruby on Rails \u3067\u306f\u3001\u9069\u5207\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u304c\u958b\u767a\u52b9\u7387\u3068\u4fdd\u5b88\u6027\u306b\u5927\u304d\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002<br>\u672c\u8a18\u4e8b\u3067\u306f\u3001Ruby on Rails \u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u3001\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u5e45\u5e83\u304f\u30ab\u30d0\u30fc\u3057\u300110\u500b\u306e\u91cd\u8981\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">\u3053\u306e\u8a18\u4e8b\u3092\u901a\u3058\u3066\u7406\u89e3\u3067\u304d\u308b10\u500b\u306e\u3053\u3068<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ol class=\"wp-block-list\">\n<li>Rails\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u57fa\u672c\u6982\u5ff5\u3068\u91cd\u8981\u6027<\/li>\n\n\n\n<li>RESTful\u30ea\u30bd\u30fc\u30b9\u306e\u52b9\u7387\u7684\u306a\u5b9a\u7fa9\u65b9\u6cd5<\/li>\n\n\n\n<li>\u9ad8\u5ea6\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\uff08\u30cd\u30b9\u30c8\u3068\u30b9\u30b3\u30fc\u30d7\uff09\u306e\u6d3b\u7528\u6cd5<\/li>\n\n\n\n<li>\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u4f5c\u6210\u30c6\u30af\u30cb\u30c3\u30af<\/li>\n\n\n\n<li>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u65b9\u6cd5<\/li>\n\n\n\n<li>\u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306e\u5b9f\u8df5<\/li>\n\n\n\n<li>\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7ba1\u7406\u6226\u7565<\/li>\n\n\n\n<li>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30c6\u30b9\u30c8\u3068\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5<\/li>\n\n\n\n<li>Rails 7.0\u4ee5\u964d\u306e\u65b0\u6a5f\u80fd\u3068\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u6700\u65b0\u30c8\u30ec\u30f3\u30c9<\/li>\n\n\n\n<li>\u52b9\u679c\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u77e5\u8b58\u3092\u8eab\u306b\u3064\u3051\u308b\u3053\u3068\u3067\u3001\u52b9\u7387\u7684\u3067\u4fdd\u5b88\u6027\u306e\u9ad8\u3044\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u54c1\u8cea\u5411\u4e0a\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<br>\u521d\u5fc3\u8005\u304b\u3089\u4e2d\u7d1a\u8005\u307e\u3067\u3001Ruby on Rails\u958b\u767a\u8005\u306e\u7686\u3055\u3093\u306b\u3068\u3063\u3066\u3001\u672c\u8a18\u4e8b\u304c\u5b9f\u8df5\u7684\u306a\u30ac\u30a4\u30c9\u3068\u306a\u308b\u3053\u3068\u3092\u9858\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u3001Ruby on Rails \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u4e16\u754c\u3078\u98db\u3073\u8fbc\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<div class=\"toc\"><br \/>\n<b>Warning<\/b>:  Undefined array key \"is_admin\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>116<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_category_top\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>121<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_top\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>128<\/b><br \/>\n    <div id=\"toc_container\" class=\"sgb-toc--bullets js-smooth-scroll\" data-dialog-title=\"\u76ee\u6b21\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <a href=\"#i-0\">1. Ruby on Rails\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u57fa\u790e\uff1a\u91cd\u8981\u6027\u3068\u57fa\u672c\u6982\u5ff5<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-1\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u8a08\u306b\u4e0e\u3048\u308b\u5f71\u97ff<\/a>      <\/li>      <li>        <a href=\"#i-2\">config\/routes.rb\u30d5\u30a1\u30a4\u30eb\u306e\u5f79\u5272\u3068\u57fa\u672c\u69cb\u9020<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-3\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u91cd\u8981\u6027<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-4\">2. \u30b7\u30f3\u30d7\u30eb\u306a\u30eb\u30fc\u30c8\u306e\u5b9a\u7fa9\u65b9\u6cd5\u3068RESTful\u30ea\u30bd\u30fc\u30b9<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-5\">get\u3001post\u3001put\u3001delete\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9<\/a>      <\/li>      <li>        <a href=\"#i-6\">resources \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u305fRESTful\u30eb\u30fc\u30c8\u306e\u4e00\u62ec\u5b9a\u7fa9<\/a>      <\/li>      <li>        <a href=\"#i-7\">RESTful\u30eb\u30fc\u30c8\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-8\">\u30b7\u30f3\u30d7\u30eb\u306a\u30eb\u30fc\u30c8\u5b9a\u7fa9\u3068RESTful\u30ea\u30bd\u30fc\u30b9\u306e\u4f7f\u3044\u5206\u3051<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-9\">3. \u9ad8\u5ea6\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\uff1a\u30cd\u30b9\u30c8\u3068\u30b9\u30b3\u30fc\u30d7<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-10\">\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30ea\u30bd\u30fc\u30b9\u306e\u5b9a\u7fa9\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/a>      <\/li>      <li>        <a href=\"#i-13\">namespace \u3068 scope \u3092\u4f7f\u7528\u3057\u305f\u30eb\u30fc\u30c8\u306e\u6574\u7406<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-17\">\u30cd\u30b9\u30c8\u3068\u30b9\u30b3\u30fc\u30d7\u306e\u9069\u5207\u306a\u4f7f\u7528\u306b\u3088\u308b\u30e1\u30ea\u30c3\u30c8<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-18\">4. \u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u4f5c\u6210\uff1a\u3088\u308a\u67d4\u8edf\u306aURL\u8a2d\u8a08<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-19\">\u30e1\u30f3\u30d0\u30fc\u30eb\u30fc\u30c8\u3068\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30eb\u30fc\u30c8\u306e\u8ffd\u52a0\u65b9\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-22\">concerns \u3092\u4f7f\u7528\u3057\u305f\u5171\u901a\u30eb\u30fc\u30c8\u306e\u518d\u5229\u7528<\/a>      <\/li>      <li>        <a href=\"#i-23\">\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u6ce8\u610f\u70b9<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-24\">\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u9069\u5207\u306a\u4f7f\u7528\u306b\u3088\u308b\u30e1\u30ea\u30c3\u30c8<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-25\">5. \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u30c6\u30af\u30cb\u30c3\u30af<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-26\">\u4e0d\u8981\u306a\u30eb\u30fc\u30c8\u3092\u524a\u9664\u3057\u3066\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u3092\u8efd\u91cf\u5316<\/a>      <\/li>      <li>        <a href=\"#i-30\">constraints \u3092\u4f7f\u7528\u3057\u305f\u52b9\u7387\u7684\u306a\u30eb\u30fc\u30c8\u30de\u30c3\u30c1\u30f3\u30b0<\/a>      <\/li>      <li>        <a href=\"#i-31\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6e2c\u5b9a\u3068\u76e3\u8996<\/a>      <\/li>      <li>        <a href=\"#i-32\">\u305d\u306e\u4ed6\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u30c6\u30af\u30cb\u30c3\u30af<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-33\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u306e\u91cd\u8981\u6027\u3068\u30e1\u30ea\u30c3\u30c8<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-34\">6. \u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\uff1a\u8106\u5f31\u6027\u5bfe\u7b56\u3068\u8a8d\u8a3c<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-35\">CSRF\u4fdd\u8b77\u3068Strong Parameters\u306e\u9069\u5207\u306a\u4f7f\u7528<\/a>      <\/li>      <li>        <a href=\"#i-38\">\u8a8d\u8a3c\u30fb\u8a8d\u53ef\u30b7\u30b9\u30c6\u30e0\u3068\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u9023\u643a\u65b9\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-41\">\u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c8\u306e\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3<\/a>      <\/li>      <li>        <a href=\"#i-43\">SSL\/TLS \u306e\u5f37\u5236\u3068HTTPS\u5316<\/a>      <\/li>      <li>        <a href=\"#i-44\">\u305d\u306e\u4ed6\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-49\">\u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306e\u91cd\u8981\u6027\u3068\u30e1\u30ea\u30c3\u30c8<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-50\">7. \u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7ba1\u7406\u6226\u7565<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-51\">\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3068\u30a8\u30f3\u30b8\u30f3\u3092\u6d3b\u7528\u3057\u305f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u5206\u5272<\/a>      <\/li>      <li>        <a href=\"#i-55\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3068\u30c7\u30d7\u30ed\u30a4\u6226\u7565<\/a>      <\/li>      <li>        <a href=\"#i-57\">\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316<\/a>      <\/li>      <li>        <a href=\"#i-61\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30c6\u30b9\u30c8\u3068\u54c1\u8cea\u4fdd\u8a3c<\/a>      <\/li>      <li>        <a href=\"#i-65\">\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u52b9\u679c\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7ba1\u7406\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-76\">\u5b9f\u969b\u306e\u5927\u898f\u6a21Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u4e8b\u4f8b<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-77\">8. \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30c6\u30b9\u30c8\u3068\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-78\">RSpec\u3092\u4f7f\u7528\u3057\u305f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u4f5c\u6210<\/a>      <\/li>      <li>        <a href=\"#i-79\">\u7d71\u5408\u30c6\u30b9\u30c8\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30b9\u30c8<\/a>      <\/li>      <li>        <a href=\"#i-80\">rails routes \u30b3\u30de\u30f3\u30c9\u3068\u30ed\u30b0\u3092\u6d3b\u7528\u3057\u305f\u30c7\u30d0\u30c3\u30b0\u30c6\u30af\u30cb\u30c3\u30af<\/a>      <\/li>      <li>        <a href=\"#i-83\">\u30ed\u30b0\u3092\u6d3b\u7528\u3057\u305f\u30c7\u30d0\u30c3\u30b0<\/a>      <\/li>      <li>        <a href=\"#i-84\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c7\u30d0\u30c3\u30b0\u7528\u306e\u30c4\u30fc\u30eb<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-87\">\u4e00\u822c\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u95a2\u9023\u306e\u554f\u984c\u3068\u89e3\u6c7a\u65b9\u6cd5<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-92\">9. Rails 7.0\u4ee5\u964d\u306e\u65b0\u6a5f\u80fd\uff1a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u6700\u65b0\u30c8\u30ec\u30f3\u30c9<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-93\">Rails 7.0\u306e\u4e3b\u8981\u306a\u65b0\u6a5f\u80fd<\/a>      <\/li>      <li>        <a href=\"#i-97\">Rails\u30a8\u30c3\u30b8\u306e\u65b0\u6a5f\u80fd\u3068\u4f7f\u7528\u4f8b<\/a>      <\/li>      <li>        <a href=\"#i-100\">\u5f93\u6765\u306e\u624b\u6cd5\u3068\u306e\u6bd4\u8f03\u3068\u79fb\u884c\u6226\u7565<\/a>      <\/li>      <li>        <a href=\"#i-101\">\u4eca\u5f8c\u306e\u5c55\u671b<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-102\">\u6700\u65b0\u6a5f\u80fd\u6d3b\u7528\u306e\u91cd\u8981\u6027<\/a>      <\/li>    <\/ul>  <\/li>  <li class=\"last\">    <a href=\"#i-103\">10. \u307e\u3068\u3081\uff1a\u52b9\u679c\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306e\u91cd\u8981\u30dd\u30a4\u30f3\u30c8<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-104\">\u8aad\u307f\u3084\u3059\u304f\u4fdd\u5b88\u6027\u306e\u9ad8\u3044\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u5b9f\u73fe\u306e\u305f\u3081\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/a>      <\/li>      <li>        <a href=\"#i-105\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306e\u91cd\u8981\u6027<\/a>      <\/li>      <li>        <a href=\"#i-106\">\u7d99\u7d9a\u7684\u306a\u5b66\u7fd2\u306e\u91cd\u8981\u6027<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-107\">\u3055\u3089\u306a\u308b\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\u3068\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u53c2\u52a0\u306e\u63a8\u5968<\/a>      <\/li>    <\/ul>  <\/li><\/ul>\n      <a href=\"#\" class=\"sgb-toc-button js-toc-button\" rel=\"nofollow\" data-open-dialog=\"true\"><i class=\"fa fa-list\"><\/i><span class=\"sgb-toc-button__text\">\u76ee\u6b21\u3078<\/span><\/a>\n    <\/div><\/div><h2 class=\"wp-block-heading\" id=\"i-0\">1. Ruby on Rails\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u57fa\u790e\uff1a\u91cd\u8981\u6027\u3068\u57fa\u672c\u6982\u5ff5<\/h2>\n\n\n\n<p>Ruby on Rails\u306b\u304a\u3051\u308b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u9aa8\u683c\u3092\u5f62\u6210\u3059\u308b\u91cd\u8981\u306a\u8981\u7d20\u3067\u3059\u3002<br>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u3001URL\u3068\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u95a2\u9023\u4ed8\u3051\u308b\u5f79\u5272\u3092\u679c\u305f\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9069\u5207\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u9053\u7b4b\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-1\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u8a08\u306b\u4e0e\u3048\u308b\u5f71\u97ff<\/h3>\n\n\n\n<div class=\"wp-block-sgb-message\"><div class=\"memo sng-shadow-0\" style=\"border-radius:0px;background-color:#b4e0fa;color:#009EF3\"><div class=\"memo_ttl dfont\"><span class=\"sng-box-msg__icon\" style=\"background:#009EF3\"><i class=\"far fa-lightbulb\"><\/i><\/span><div class=\"sng-box-msg__title\">\u9069\u5207\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3088\u308b\u52b9\u679c<\/div><\/div><div class=\"sng-box-msg__contents\">\n<ol class=\"wp-block-list\">\n<li><strong>\u53ef\u8aad\u6027\u306e\u5411\u4e0a<\/strong>: \u76f4\u611f\u7684\u306aURL\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u7406\u89e3\u3057\u3084\u3059\u304f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u9020\u3092\u628a\u63e1\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>SEO\u306e\u6700\u9069\u5316<\/strong>: \u9069\u5207\u306b\u8a2d\u8a08\u3055\u308c\u305fURL\u306f\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306b\u3068\u3063\u3066\u3082\u7406\u89e3\u3057\u3084\u3059\u304f\u3001\u691c\u7d22\u7d50\u679c\u3067\u306e\u8868\u793a\u306b\u597d\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u4fdd\u5b88\u6027\u306e\u5411\u4e0a<\/strong>: \u8ad6\u7406\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u69cb\u9020\u306f\u3001\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u3082\u30b3\u30fc\u30c9\u306e\u4fdd\u5b88\u3084\u62e1\u5f35\u3092\u5bb9\u6613\u306b\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6700\u9069\u5316<\/strong>: \u52b9\u7387\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u51e6\u7406\u901f\u5ea6\u5411\u4e0a\u306b\u3082\u5bc4\u4e0e\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/div><\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-2\">config\/routes.rb\u30d5\u30a1\u30a4\u30eb\u306e\u5f79\u5272\u3068\u57fa\u672c\u69cb\u9020<\/h3>\n\n\n\n<p>Ruby on Rails\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u3001<code>config\/routes.rb<\/code>\u30d5\u30a1\u30a4\u30eb\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u3059\u3079\u3066\u306e\u30eb\u30fc\u30c8\u3092\u96c6\u4e2d\u7ba1\u7406\u3059\u308b\u5834\u6240\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u57fa\u672c\u7684\u306a<code>routes.rb<\/code>\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  # \u3053\u3053\u306b\u30eb\u30fc\u30c8\u3092\u5b9a\u7fa9\nend<\/pre>\n\n\n\n<p>\u30eb\u30fc\u30c8\u306e\u5b9a\u7fa9\u306b\u306f\u3001HTTP\u30e1\u30bd\u30c3\u30c9\uff08GET\u3001POST\u3001PUT\u3001DELETE\u306a\u3069\uff09\u3068\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u57fa\u672c\u7684\u306a\u30eb\u30fc\u30c8\u5b9a\u7fa9\u306e\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  get '\/about', to: 'pages#about'\n  post '\/users', to: 'users#create'\n\n  # resources\u3092\u4f7f\u7528\u3057\u305fRESTful\u306a\u30eb\u30fc\u30c8\u5b9a\u7fa9\n  resources :articles\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u3053\u3068\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/about<\/code>\u3078\u306eGET\u30ea\u30af\u30a8\u30b9\u30c8\u306f<code>PagesController<\/code>\u306e<code>about<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>\/users<\/code>\u3078\u306ePOST\u30ea\u30af\u30a8\u30b9\u30c8\u306f<code>UsersController<\/code>\u306e<code>create<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>articles<\/code>\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u3001RESTful\u306a7\u3064\u306e\u6a19\u6e96\u30a2\u30af\u30b7\u30e7\u30f3\uff08index\u3001show\u3001new\u3001create\u3001edit\u3001update\u3001destroy\uff09\u306e\u30eb\u30fc\u30c8\u304c\u81ea\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-3\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u91cd\u8981\u6027<\/h3>\n\n\n\n<p>\u9069\u5207\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u3084\u3059\u3055\u3001\u4fdd\u5b88\u6027\u3001\u305d\u3057\u3066\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u76f4\u63a5\u7684\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002<br>\u521d\u671f\u6bb5\u968e\u3067\u3057\u3063\u304b\u308a\u3068\u3057\u305f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u5f8c\u3005\u306e\u958b\u767a\u3084\u62e1\u5f35\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u306a\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u306e\u5411\u4e0a\u306b\u3082\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3055\u3089\u306b\u8a73\u7d30\u306a\u30eb\u30fc\u30c8\u5b9a\u7fa9\u65b9\u6cd5\u3068\u3001RESTful\u30ea\u30bd\u30fc\u30b9\u306e\u6d3b\u7528\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br>Ruby on Rails\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u3092\u6700\u5927\u9650\u306b\u6d3b\u7528\u3057\u3001\u52b9\u7387\u7684\u3067\u67d4\u8edf\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u5b9f\u73fe\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-4\">2. \u30b7\u30f3\u30d7\u30eb\u306a\u30eb\u30fc\u30c8\u306e\u5b9a\u7fa9\u65b9\u6cd5\u3068RESTful\u30ea\u30bd\u30fc\u30b9<\/h2>\n\n\n\n<p>Ruby on Rails\u3067\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30eb\u30fc\u30c8\u5b9a\u7fa9\u304b\u3089\u9ad8\u5ea6\u306aRESTful\u30ea\u30bd\u30fc\u30b9\u306e\u6d3b\u7528\u307e\u3067\u3001\u67d4\u8edf\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<br>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u57fa\u672c\u7684\u306a\u30eb\u30fc\u30c8\u5b9a\u7fa9\u65b9\u6cd5\u3068RESTful\u30ea\u30bd\u30fc\u30b9\u306e\u6d3b\u7528\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-5\">get\u3001post\u3001put\u3001delete\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9<\/h3>\n\n\n\n<p>Rails \u306e <code>routes.rb<\/code> \u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001HTTP\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u5fdc\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u7c21\u5358\u306b\u30eb\u30fc\u30c8\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002\u4e3b\u306a\u30e1\u30bd\u30c3\u30c9\u3068\u305d\u306e\u4f7f\u7528\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  # GET\u30ea\u30af\u30a8\u30b9\u30c8: \u60c5\u5831\u306e\u53d6\u5f97\n  get '\/articles', to: 'articles#index'\n\n  # POST\u30ea\u30af\u30a8\u30b9\u30c8: \u65b0\u3057\u3044\u30ea\u30bd\u30fc\u30b9\u306e\u4f5c\u6210\n  post '\/articles', to: 'articles#create'\n\n  # PUT\u30ea\u30af\u30a8\u30b9\u30c8: \u65e2\u5b58\u30ea\u30bd\u30fc\u30b9\u306e\u66f4\u65b0\uff08\u5168\u4f53\uff09\n  put '\/articles\/:id', to: 'articles#update'\n\n  # PATCH\u30ea\u30af\u30a8\u30b9\u30c8: \u65e2\u5b58\u30ea\u30bd\u30fc\u30b9\u306e\u90e8\u5206\u7684\u66f4\u65b0\n  patch '\/articles\/:id', to: 'articles#update'\n\n  # DELETE\u30ea\u30af\u30a8\u30b9\u30c8: \u30ea\u30bd\u30fc\u30b9\u306e\u524a\u9664\n  delete '\/articles\/:id', to: 'articles#destroy'\nend<\/pre>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30eb\u30fc\u30c8\u5b9a\u7fa9\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d1\u30b9\u3068HTTP\u30e1\u30bd\u30c3\u30c9\u306e\u7d44\u307f\u5408\u308f\u305b\u306b\u5bfe\u3057\u3066\u3001\u5bfe\u5fdc\u3059\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-6\">resources \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u305fRESTful\u30eb\u30fc\u30c8\u306e\u4e00\u62ec\u5b9a\u7fa9<\/h3>\n\n\n\n<p>RESTful\uff08Representational State Transfer\uff09\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u8a08\u539f\u5247\u306e\u4e00\u3064\u3067\u3001\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3059\u308b\u64cd\u4f5c\u3092\u7d71\u4e00\u7684\u306b\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>Rails\u3067\u306f <code>resources<\/code> \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001RESTful\u306a\u30eb\u30fc\u30c8\u3092\u7c21\u5358\u306b\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  resources :articles\nend<\/pre>\n\n\n\n<p>\u3053\u306e1\u884c\u306e\u30b3\u30fc\u30c9\u3067\u3001\u4ee5\u4e0b\u306e7\u3064\u306e\u6a19\u6e96\u7684\u306aRESTful\u30eb\u30fc\u30c8\u304c\u81ea\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<div id=\"id-46b3d0ed-d22f-4a3d-ab0e-de3438adae68\">\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>HTTP\u30e1\u30bd\u30c3\u30c9<\/th><th>\u30d1\u30b9<\/th><th>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9#\u30a2\u30af\u30b7\u30e7\u30f3<\/th><th>\u7528\u9014<\/th><\/tr><\/thead><tbody><tr><td>GET<\/td><td>\/articles<\/td><td>articles#index<\/td><td>\u8a18\u4e8b\u4e00\u89a7\u306e\u8868\u793a<\/td><\/tr><tr><td>GET<\/td><td>\/articles\/new<\/td><td>articles#new<\/td><td>\u65b0\u898f\u8a18\u4e8b\u4f5c\u6210\u30d5\u30a9\u30fc\u30e0\u306e\u8868\u793a<\/td><\/tr><tr><td>POST<\/td><td>\/articles<\/td><td>articles#create<\/td><td>\u65b0\u898f\u8a18\u4e8b\u306e\u4f5c\u6210<\/td><\/tr><tr><td>GET<\/td><td>\/articles\/:id<\/td><td>articles#show<\/td><td>\u7279\u5b9a\u306e\u8a18\u4e8b\u306e\u8868\u793a<\/td><\/tr><tr><td>GET<\/td><td>\/articles\/:id\/edit<\/td><td>articles#edit<\/td><td>\u8a18\u4e8b\u7de8\u96c6\u30d5\u30a9\u30fc\u30e0\u306e\u8868\u793a<\/td><\/tr><tr><td>PATCH\/PUT<\/td><td>\/articles\/:id<\/td><td>articles#update<\/td><td>\u8a18\u4e8b\u306e\u66f4\u65b0<\/td><\/tr><tr><td>DELETE<\/td><td>\/articles\/:id<\/td><td>articles#destroy<\/td><td>\u8a18\u4e8b\u306e\u524a\u9664<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"i-7\">RESTful\u30eb\u30fc\u30c8\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/h3>\n\n\n\n<p><code>resources<\/code> \u30e1\u30bd\u30c3\u30c9\u306f\u67d4\u8edf\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  resources :articles do\n    # \u7279\u5b9a\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u307f\u3092\u5b9a\u7fa9\n    only: [:index, :show]\n\n    # \u7279\u5b9a\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u9664\u5916\n    except: [:destroy]\n\n    # \u30e1\u30f3\u30d0\u30fc\u30eb\u30fc\u30c8\uff08\u7279\u5b9a\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3059\u308b\u8ffd\u52a0\u30a2\u30af\u30b7\u30e7\u30f3\uff09\n    member do\n      get 'preview'\n    end\n\n    # \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30eb\u30fc\u30c8\uff08\u30ea\u30bd\u30fc\u30b9\u5168\u4f53\u306b\u5bfe\u3059\u308b\u8ffd\u52a0\u30a2\u30af\u30b7\u30e7\u30f3\uff09\n    collection do\n      get 'search'\n    end\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5fc5\u8981\u306a\u30eb\u30fc\u30c8\u306e\u307f\u3092\u5b9a\u7fa9\u3057\u305f\u308a\u3001\u6a19\u6e96\u7684\u306aRESTful\u30eb\u30fc\u30c8\u4ee5\u5916\u306e\u8ffd\u52a0\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9a\u7fa9\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-8\">\u30b7\u30f3\u30d7\u30eb\u306a\u30eb\u30fc\u30c8\u5b9a\u7fa9\u3068RESTful\u30ea\u30bd\u30fc\u30b9\u306e\u4f7f\u3044\u5206\u3051<\/h3>\n\n\n\n<p>\u30b7\u30f3\u30d7\u30eb\u306a\u30eb\u30fc\u30c8\u5b9a\u7fa9\u3068RESTful\u30ea\u30bd\u30fc\u30b9\u306f\u3001\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u9069\u5207\u306b\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u30b7\u30f3\u30d7\u30eb\u306a\u30eb\u30fc\u30c8\u5b9a\u7fa9<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u5358\u4e00\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3084\u3001RESTful\u306a\u6982\u5ff5\u306b\u5f53\u3066\u306f\u307e\u3089\u306a\u3044\u7279\u6b8a\u306a\u30eb\u30fc\u30c8\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u9759\u7684\u30da\u30fc\u30b8\u3084\u3001\u7279\u5b9a\u306e\u51e6\u7406\u3092\u884c\u3046\u5358\u4e00\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306a\u3069\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>RESTful\u30ea\u30bd\u30fc\u30b9<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u30c7\u30fc\u30bf\u306eCRUD\uff08\u4f5c\u6210\u3001\u8aad\u307f\u53d6\u308a\u3001\u66f4\u65b0\u3001\u524a\u9664\uff09\u64cd\u4f5c\u3092\u884c\u3046\u30ea\u30bd\u30fc\u30b9\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e3b\u8981\u306a\u6a5f\u80fd\u3084\u3001\u8907\u6570\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u6301\u3064\u30ea\u30bd\u30fc\u30b9\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u9069\u5207\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u9020\u3092\u660e\u78ba\u306b\u3057\u3001\u958b\u767a\u52b9\u7387\u3068\u4fdd\u5b88\u6027\u3092\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3088\u308a\u9ad8\u5ea6\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-9\">3. \u9ad8\u5ea6\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\uff1a\u30cd\u30b9\u30c8\u3068\u30b9\u30b3\u30fc\u30d7<\/h2>\n\n\n\n<p>Ruby on Rails\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306f\u975e\u5e38\u306b\u67d4\u8edf\u3067\u5f37\u529b\u3067\u3059\u3002<br>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3088\u308a\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u69cb\u9020\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306e\u9ad8\u5ea6\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u3001\u7279\u306b\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30ea\u30bd\u30fc\u30b9\u3068\u30b9\u30b3\u30fc\u30d7\u306e\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-10\">\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30ea\u30bd\u30fc\u30b9\u306e\u5b9a\u7fa9\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n\n\n\n<p>\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30ea\u30bd\u30fc\u30b9\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u9593\u306e\u89aa\u5b50\u95a2\u4fc2\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<br>\u4f8b\u3048\u3070\u3001\u8a18\u4e8b\u3068\u305d\u306e\u30b3\u30e1\u30f3\u30c8\u306e\u95a2\u4fc2\u306a\u3069\u304c\u3053\u308c\u306b\u5f53\u305f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-11\">\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30ea\u30bd\u30fc\u30b9\u306e\u5b9a\u7fa9\u65b9\u6cd5<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  resources :articles do\n    resources :comments\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30eb\u30fc\u30c8\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GET \/articles\/:article_id\/comments<\/li>\n\n\n\n<li>POST \/articles\/:article_id\/comments<\/li>\n\n\n\n<li>GET \/articles\/:article_id\/comments\/:id<\/li>\n\n\n\n<li>PATCH \/articles\/:article_id\/comments\/:id<\/li>\n\n\n\n<li>PUT \/articles\/:article_id\/comments\/:id<\/li>\n\n\n\n<li>DELETE \/articles\/:article_id\/comments\/:id<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u7279\u5b9a\u306e\u8a18\u4e8b\u306b\u7d10\u3065\u3044\u305f\u30b3\u30e1\u30f3\u30c8\u3092\u6271\u3046\u30eb\u30fc\u30c8\u304c\u81ea\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-12\">\u30cd\u30b9\u30c8\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h4>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30cd\u30b9\u30c8\u306b\u95a2\u3059\u308b\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u30103STEP\u3011<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ol class=\"wp-block-list\">\n<li><strong>\u6d45\u3044\u30cd\u30b9\u30c8\u3092\u5fc3\u304c\u3051\u308b<\/strong>: \u30cd\u30b9\u30c8\u306f1\u968e\u5c64\u306b\u7559\u3081\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002\u6df1\u3059\u304e\u308b\u30cd\u30b9\u30c8\u306f\u8907\u96d1\u306aURL\u3092\u751f\u307f\u51fa\u3057\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u56f0\u96e3\u306b\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   resources :articles do\n     resources :comments, only: [:index, :new, :create]\n   end\n   resources :comments, only: [:show, :edit, :update, :destroy]<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u5fc5\u8981\u306a\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u307f\u3092\u5b9a\u7fa9<\/strong>: <code>only<\/code> \u307e\u305f\u306f <code>except<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u5fc5\u8981\u306a\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u307f\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u89aa\u30ea\u30bd\u30fc\u30b9\u306eID\u304c\u5fc5\u8981\u306a\u3044\u5834\u5408\u306f\u30cd\u30b9\u30c8\u3092\u907f\u3051\u308b<\/strong>: \u4f8b\u3048\u3070\u3001\u30b3\u30e1\u30f3\u30c8\u306e\u7de8\u96c6\u3084\u524a\u9664\u306b\u8a18\u4e8b\u306eID\u304c\u4e0d\u8981\u306a\u5834\u5408\u306f\u3001\u3053\u308c\u3089\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u30cd\u30b9\u30c8\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-13\">namespace \u3068 scope \u3092\u4f7f\u7528\u3057\u305f\u30eb\u30fc\u30c8\u306e\u6574\u7406<\/h3>\n\n\n\n<p><code>namespace<\/code> \u3068 <code>scope<\/code> \u306f\u3001\u95a2\u9023\u3059\u308b\u30eb\u30fc\u30c8\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3057\u3001\u30b3\u30fc\u30c9\u3092\u6574\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<br>\u3053\u308c\u3089\u306f\u7279\u306b\u5927\u898f\u6a21\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u6709\u7528\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-14\">namespace \u306e\u4f7f\u7528<\/h4>\n\n\n\n<p><code>namespace<\/code> \u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u30e2\u30b8\u30e5\u30fc\u30eb\u5185\u306b\u914d\u7f6e\u3057\u3001URL\u306b\u3082\u540d\u524d\u7a7a\u9593\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  namespace :admin do\n    resources :articles, :comments\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30eb\u30fc\u30c8\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GET \/admin\/articles<\/li>\n\n\n\n<li>GET \/admin\/articles\/:id<\/li>\n\n\n\n<li>GET \/admin\/comments<\/li>\n\n\n\n<li>GET \/admin\/comments\/:id<\/li>\n<\/ul>\n\n\n\n<p>\u5bfe\u5fdc\u3059\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306f <code>app\/controllers\/admin\/articles_controller.rb<\/code> \u306e\u3088\u3046\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-15\">scope \u306e\u4f7f\u7528<\/h4>\n\n\n\n<p><code>scope<\/code> \u306f URL \u306e\u307f\u3092\u5909\u66f4\u3057\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u540d\u524d\u7a7a\u9593\u306f\u5909\u66f4\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  scope '\/admin' do\n    resources :articles, :comments\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30eb\u30fc\u30c8\u304c\u751f\u6210\u3055\u308c\u307e\u3059\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GET \/admin\/articles<\/li>\n\n\n\n<li>GET \/admin\/articles\/:id<\/li>\n\n\n\n<li>GET \/admin\/comments<\/li>\n\n\n\n<li>GET \/admin\/comments\/:id<\/li>\n<\/ul>\n\n\n\n<p>\u305f\u3060\u3057\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306f <code>app\/controllers\/articles_controller.rb<\/code> \u306e\u307e\u307e\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-16\">module \u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u4f7f\u7528<\/h4>\n\n\n\n<p><code>scope<\/code> \u3068 <code>module<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001URL\u3068\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u540d\u524d\u7a7a\u9593\u3092\u5225\u3005\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  scope '\/admin', module: 'admin' do\n    resources :articles, :comments\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u3001URL\u306f <code>\/admin\/articles<\/code> \u3068\u306a\u308a\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306f <code>Admin::ArticlesController<\/code> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-17\">\u30cd\u30b9\u30c8\u3068\u30b9\u30b3\u30fc\u30d7\u306e\u9069\u5207\u306a\u4f7f\u7528\u306b\u3088\u308b\u30e1\u30ea\u30c3\u30c8<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30b3\u30fc\u30c9\u306e\u6574\u7406<\/strong>: \u95a2\u9023\u3059\u308b\u30eb\u30fc\u30c8\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u3053\u3068\u3067\u3001<code>routes.rb<\/code> \u30d5\u30a1\u30a4\u30eb\u304c\u6574\u7406\u3055\u308c\u3001\u53ef\u8aad\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u547d\u540d\u306e\u4e00\u8cab\u6027<\/strong>: \u540d\u524d\u7a7a\u9593\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u95a2\u9023\u3059\u308b\u6a5f\u80fd\u3084\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u4e00\u8cab\u3057\u305f\u547d\u540d\u3092\u9069\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u5411\u4e0a<\/strong>: \u7ba1\u7406\u8005\u7528\u30eb\u30fc\u30c8\u3092\u5225\u306e\u540d\u524d\u7a7a\u9593\u306b\u914d\u7f6e\u3059\u308b\u3053\u3068\u3067\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u3092\u4e00\u62ec\u3057\u3066\u9069\u7528\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u62e1\u5f35\u6027<\/strong>: \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6210\u9577\u306b\u4f34\u3044\u3001\u65b0\u3057\u3044\u6a5f\u80fd\u3084<\/li>\n<\/ol>\n\n\n\n<p>\u9069\u5207\u306a\u30cd\u30b9\u30c8\u3068\u30b9\u30b3\u30fc\u30d7\u306e\u4f7f\u7528\u306f\u3001\u5927\u898f\u6a21\u3067\u8907\u96d1\u306aRails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7ba1\u7406\u3092\u5bb9\u6613\u306b\u3057\u3001\u958b\u767a\u52b9\u7387\u3068\u4fdd\u5b88\u6027\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002<br>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3055\u3089\u306b\u67d4\u8edf\u306aURL\u8a2d\u8a08\u3092\u53ef\u80fd\u306b\u3059\u308b\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u4f5c\u6210\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-18\">4. \u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u4f5c\u6210\uff1a\u3088\u308a\u67d4\u8edf\u306aURL\u8a2d\u8a08<\/h2>\n\n\n\n<p>Ruby on Rails\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306f\u3001RESTful\u306a\u30ea\u30bd\u30fc\u30b9\u30d9\u30fc\u30b9\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u57fa\u672c\u3068\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3088\u308a\u8907\u96d1\u306a\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u3084\u7279\u6b8a\u306a\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306b\u3001\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u4f5c\u6210\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30e1\u30f3\u30d0\u30fc\u30eb\u30fc\u30c8\u3068\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30eb\u30fc\u30c8\u306e\u8ffd\u52a0\u65b9\u6cd5\u3001\u305d\u3057\u3066concerns\u3092\u4f7f\u7528\u3057\u305f\u5171\u901a\u30eb\u30fc\u30c8\u306e\u518d\u5229\u7528\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-19\">\u30e1\u30f3\u30d0\u30fc\u30eb\u30fc\u30c8\u3068\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30eb\u30fc\u30c8\u306e\u8ffd\u52a0\u65b9\u6cd5<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-20\">\u30e1\u30f3\u30d0\u30fc\u30eb\u30fc\u30c8<\/h4>\n\n\n\n<p>\u30e1\u30f3\u30d0\u30fc\u30eb\u30fc\u30c8\u306f\u3001\u7279\u5b9a\u306e\u30ea\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5bfe\u3059\u308b\u8ffd\u52a0\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9a\u7fa9\u3059\u308b\u969b\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  resources :articles do\n    member do\n      get 'preview'\n      post 'publish'\n    end\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u30eb\u30fc\u30c8\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GET \/articles\/:id\/preview<\/li>\n\n\n\n<li>POST \/articles\/:id\/publish<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-sgb-message\"><div class=\"memo sng-shadow-0\" style=\"border-radius:0px;background-color:#fff9e6;color:#ffb36b\"><div class=\"memo_ttl dfont\"><span class=\"sng-box-msg__icon\" style=\"background:#ffb36b\"><i class=\"fas fa-pencil-alt\"><\/i><\/span><div class=\"sng-box-msg__title\">\u4f7f\u7528\u4f8b<\/div><\/div><div class=\"sng-box-msg__contents\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># app\/controllers\/articles_controller.rb\nclass ArticlesController &lt; ApplicationController\n  def preview\n    @article = Article.find(params[:id])\n    render 'preview'\n  end\n\n  def publish\n    @article = Article.find(params[:id])\n    @article.publish!\n    redirect_to @article, notice: '\u8a18\u4e8b\u304c\u516c\u958b\u3055\u308c\u307e\u3057\u305f\u3002'\n  end\nend<\/pre>\n<\/div><\/div><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-21\">\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30eb\u30fc\u30c8<\/h4>\n\n\n\n<p>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30eb\u30fc\u30c8\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u5168\u4f53\u306b\u5bfe\u3059\u308b\u8ffd\u52a0\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9a\u7fa9\u3059\u308b\u969b\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  resources :articles do\n    collection do\n      get 'search'\n      get 'recent'\n    end\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u30eb\u30fc\u30c8\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GET \/articles\/search<\/li>\n\n\n\n<li>GET \/articles\/recent<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-sgb-message\"><div class=\"memo sng-shadow-0\" style=\"border-radius:0px;background-color:#fff9e6;color:#ffb36b\"><div class=\"memo_ttl dfont\"><span class=\"sng-box-msg__icon\" style=\"background:#ffb36b\"><i class=\"fas fa-pencil-alt\"><\/i><\/span><div class=\"sng-box-msg__title\">\u4f7f\u7528\u4f8b<\/div><\/div><div class=\"sng-box-msg__contents\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># app\/controllers\/articles_controller.rb\nclass ArticlesController &lt; ApplicationController\n  def search\n    @articles = Article.search(params[:q])\n    render 'index'\n  end\n\n  def recent\n    @articles = Article.recent\n    render 'index'\n  end\nend<\/pre>\n<\/div><\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-22\">concerns \u3092\u4f7f\u7528\u3057\u305f\u5171\u901a\u30eb\u30fc\u30c8\u306e\u518d\u5229\u7528<\/h3>\n\n\n\n<p><code>concerns<\/code> \u306f\u3001\u8907\u6570\u306e\u30ea\u30bd\u30fc\u30b9\u3067\u5171\u901a\u3057\u3066\u4f7f\u7528\u3055\u308c\u308b\u30eb\u30fc\u30c8\u30d1\u30bf\u30fc\u30f3\u3092\u5b9a\u7fa9\u3057\u3001\u518d\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  concern :commentable do\n    resources :comments\n  end\n\n  concern :taggable do\n    get 'tags', on: :member\n  end\n\n  resources :articles, concerns: [:commentable, :taggable]\n  resources :photos, concerns: [:commentable, :taggable]\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u3001<code>articles<\/code> \u3068 <code>photos<\/code> \u306e\u4e21\u65b9\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u3001\u30b3\u30e1\u30f3\u30c8\u6a5f\u80fd\u3068\u30bf\u30b0\u6a5f\u80fd\u306b\u95a2\u9023\u3059\u308b\u30eb\u30fc\u30c8\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-23\">\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u6ce8\u610f\u70b9<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>RESTful\u306a\u8a2d\u8a08\u3092\u512a\u5148\u3059\u308b<\/strong>: \u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u524d\u306b\u3001\u65e2\u5b58\u306eRESTful\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u5bfe\u5fdc\u3067\u304d\u306a\u3044\u304b\u691c\u8a0e\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>\u547d\u540d\u898f\u5247\u3092\u5b88\u308b<\/strong>: \u30ab\u30b9\u30bf\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u540d\u306f\u3001\u305d\u306e\u6a5f\u80fd\u3092\u660e\u78ba\u306b\u8868\u3059\u52d5\u8a5e\u3092\u4f7f\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>\u30eb\u30fc\u30c8\u30d8\u30eb\u30d1\u30fc\u3092\u6d3b\u7528\u3059\u308b<\/strong>: \u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306b\u3082\u9069\u5207\u306a\u540d\u524d\u306e\u30eb\u30fc\u30c8\u30d8\u30eb\u30d1\u30fc\u304c\u751f\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u7a4d\u6975\u7684\u306b\u4f7f\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>\u904e\u5ea6\u306e\u4f7f\u7528\u3092\u907f\u3051\u308b<\/strong>: \u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u904e\u5270\u306a\u4f7f\u7528\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8907\u96d1\u6027\u3092\u5897\u5927\u3055\u305b\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u5316<\/strong>: \u30c1\u30fc\u30e0\u958b\u767a\u306e\u5834\u5408\u3001\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u76ee\u7684\u3068\u4f7f\u7528\u65b9\u6cd5\u3092\u660e\u78ba\u306b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u5316\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-24\">\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u9069\u5207\u306a\u4f7f\u7528\u306b\u3088\u308b\u30e1\u30ea\u30c3\u30c8<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30e6\u30fc\u30b6\u30fc\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u306aURL<\/strong>: \u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u306b\u6cbf\u3063\u305f\u76f4\u611f\u7684\u306aURL\u3092\u8a2d\u8a08\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u67d4\u8edf\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u8a08<\/strong>: \u6a19\u6e96\u7684\u306aCRUD\u64cd\u4f5c\u4ee5\u5916\u306e\u8907\u96d1\u306a\u64cd\u4f5c\u3082\u30a8\u30ec\u30ac\u30f3\u30c8\u306b\u8868\u73fe\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u6027<\/strong>: concerns\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5171\u901a\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30bf\u30fc\u30f3\u3092\u52b9\u7387\u7684\u306b\u518d\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>SEO\u306e\u6700\u9069\u5316<\/strong>: \u610f\u5473\u306e\u3042\u308bURL\u306f\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306e\u30e9\u30f3\u30ad\u30f3\u30b0\u306b\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306e\u9069\u5207\u306a\u4f7f\u7528\u306f\u3001Ruby on Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u67d4\u8edf\u6027\u3068\u8868\u73fe\u529b\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002<br>\u3057\u304b\u3057\u3001\u305d\u306e\u4f7f\u7528\u306b\u306f\u614e\u91cd\u3055\u3082\u5fc5\u8981\u3067\u3059\u3002RESTful\u306a\u8a2d\u8a08\u539f\u5247\u3068\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u308a\u306a\u304c\u3089\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8981\u4ef6\u306b\u6700\u9069\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u3092\u5fc3\u304c\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u30c6\u30af\u30cb\u30c3\u30af\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-25\">5. \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u30c6\u30af\u30cb\u30c3\u30af<\/h2>\n\n\n\n<p>Ruby on Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6700\u9069\u5316\u3059\u308b\u4e0a\u3067\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u52b9\u7387\u5316\u306f\u91cd\u8981\u306a\u8981\u7d20\u306e\u4e00\u3064\u3067\u3059\u3002<br>\u9069\u5207\u306b\u8a2d\u8a08\u3055\u308c\u305f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u51e6\u7406\u306e\u9ad8\u901f\u5316\u306b\u3064\u306a\u304c\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u6642\u9593\u3092\u6539\u5584\u3057\u307e\u3059\u3002<br>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6700\u9069\u5316\u3059\u308b\u305f\u3081\u306e\u4e3b\u8981\u306a\u30c6\u30af\u30cb\u30c3\u30af\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-26\">\u4e0d\u8981\u306a\u30eb\u30fc\u30c8\u3092\u524a\u9664\u3057\u3066\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u3092\u8efd\u91cf\u5316<\/h3>\n\n\n\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8d77\u52d5\u6642\u9593\u3068\u30ea\u30af\u30a8\u30b9\u30c8\u51e6\u7406\u901f\u5ea6\u306b\u76f4\u63a5\u5f71\u97ff\u3057\u307e\u3059\u3002<br>\u4e0d\u8981\u306a\u30eb\u30fc\u30c8\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3067\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u3092\u8efd\u91cf\u5316\u3057\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-27\"><strong>\u4f7f\u7528\u3055\u308c\u3066\u3044\u306a\u3044\u30eb\u30fc\u30c8\u306e\u7279\u5b9a<\/strong><\/h4>\n\n\n\n<p><br><code>rails routes<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u5168\u3066\u306e\u30eb\u30fc\u30c8\u3092\u8868\u793a\u3057\u3001\u5b9f\u969b\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30eb\u30fc\u30c8\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-28\"><strong>\u30eb\u30fc\u30c8\u306e\u7d5e\u308a\u8fbc\u307f<\/strong><\/h4>\n\n\n\n<p><br><code>resources<\/code> \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u969b\u306f\u3001<code>only<\/code> \u307e\u305f\u306f <code>except<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u5fc5\u8981\u306a\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u307f\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   resources :articles, only: [:index, :show]<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-29\"><strong>\u4e0d\u8981\u306a\u30eb\u30fc\u30c8\u306e\u524a\u9664<\/strong><\/h4>\n\n\n\n<p><br>\u4f7f\u7528\u3055\u308c\u3066\u3044\u306a\u3044\u30eb\u30fc\u30c8\u3084\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6a5f\u80fd\u3068\u3057\u3066\u4e0d\u8981\u306a\u30eb\u30fc\u30c8\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-30\">constraints \u3092\u4f7f\u7528\u3057\u305f\u52b9\u7387\u7684\u306a\u30eb\u30fc\u30c8\u30de\u30c3\u30c1\u30f3\u30b0<\/h3>\n\n\n\n<p><code>constraints<\/code> \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30eb\u30fc\u30c8\u30de\u30c3\u30c1\u30f3\u30b0\u306e\u6761\u4ef6\u3092\u7d30\u304b\u304f\u6307\u5b9a\u3057\u3001\u4e0d\u8981\u306a\u30de\u30c3\u30c1\u30f3\u30b0\u51e6\u7406\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">constraints(id: \/\\d+\/) do\n  resources :articles\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001<code>:id<\/code> \u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u6570\u5b57\u306e\u307f\u3067\u3042\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3057\u3001\u4e0d\u8981\u306a\u30de\u30c3\u30c1\u30f3\u30b0\u51e6\u7406\u3092\u907f\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3088\u308a\u8907\u96d1\u306a\u5236\u7d04\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u306e\u5236\u7d04\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class SubdomainConstraint\n  def initialize(subdomain)\n    @subdomain = subdomain\n  end\n\n  def matches?(request)\n    request.subdomain == @subdomain\n  end\nend\n\nconstraints SubdomainConstraint.new('admin') do\n  resources :admin_articles\nend<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-31\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6e2c\u5b9a\u3068\u76e3\u8996<\/h3>\n\n\n\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u7d99\u7d9a\u7684\u306b\u76e3\u8996\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Rails \u306e\u30ed\u30b0\u89e3\u6790<\/strong>:<br>\u958b\u767a\u74b0\u5883\u3067\u306e\u30ed\u30b0\u3092\u89e3\u6790\u3057\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u304b\u304b\u308b\u6642\u9593\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u76e3\u8996\u30c4\u30fc\u30eb\u306e\u4f7f\u7528<\/strong>:<br>New Relic \u3084 Scout \u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u672c\u756a\u74b0\u5883\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u76e3\u8996\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c6\u30b9\u30c8<\/strong>:<br>Apache Bench\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u7279\u5b9a\u306e\u30eb\u30fc\u30c8\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u6642\u9593\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-32\">\u305d\u306e\u4ed6\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u30c6\u30af\u30cb\u30c3\u30af<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30eb\u30fc\u30c8\u306e\u30ad\u30e3\u30c3\u30b7\u30e5<\/strong>:<br><code>config.cache_classes = true<\/code> \u3092\u8a2d\u5b9a\u3057\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>Rack::Cache \u306e\u4f7f\u7528<\/strong>:<br>HTTP \u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u5b9f\u88c5\u3057\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u51e6\u7406\u306e\u524d\u6bb5\u968e\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>Advanced Routing \u306e\u6d3b\u7528<\/strong>:<br>\u8907\u96d1\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30ed\u30b8\u30c3\u30af\u3092Rack\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306b\u79fb\u52d5\u3055\u305b\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u51e6\u7406\u3092\u7c21\u7d20\u5316\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-33\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u306e\u91cd\u8981\u6027\u3068\u30e1\u30ea\u30c3\u30c8<\/h3>\n\n\n\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5177\u4f53\u7684\u306a\u30e1\u30ea\u30c3\u30c8\u3092\u3082\u305f\u3089\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30ec\u30b9\u30dd\u30f3\u30b9\u6642\u9593\u306e\u77ed\u7e2e<\/strong>: \u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306e\u5411\u4e0a\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30b5\u30fc\u30d0\u30fc\u30ea\u30bd\u30fc\u30b9\u306e\u52b9\u7387\u7684\u306a\u4f7f\u7528<\/strong>: \u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u306e\u5411\u4e0a\u306b\u5bc4\u4e0e\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8d77\u52d5\u6642\u9593\u77ed\u7e2e<\/strong>: \u958b\u767a\u52b9\u7387\u306e\u5411\u4e0a\u306b\u8ca2\u732e\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u5b9f\u969b\u306e\u4e8b\u4f8b\u3068\u3057\u3066\u3001\u5927\u898f\u6a21\u306aE\u30b3\u30de\u30fc\u30b9\u30b5\u30a4\u30c8\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u6700\u9069\u5316\u3092\u884c\u3063\u305f\u7d50\u679c\u3001\u5e73\u5747\u30ec\u30b9\u30dd\u30f3\u30b9\u6642\u9593\u304c20%\u6539\u5584\u3055\u308c\u305f\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u306f\u3001Ruby on Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5168\u4f53\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a\u306b\u5927\u304d\u304f\u8ca2\u732e\u3057\u307e\u3059\u3002<br>\u5b9a\u671f\u7684\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u6700\u9069\u5316\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u52b9\u7387\u7684\u3067\u9ad8\u901f\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304d\u307e\u3059\u3002<br>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u540c\u69d8\u306b\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3082\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u8a08\u306b\u304a\u3044\u3066\u975e\u5e38\u306b\u91cd\u8981\u306a\u8981\u7d20\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-34\">6. \u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\uff1a\u8106\u5f31\u6027\u5bfe\u7b56\u3068\u8a8d\u8a3c<\/h2>\n\n\n\n<p>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b89\u5168\u6027\u3092\u78ba\u4fdd\u3059\u308b\u4e0a\u3067\u3001\u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002<br>\u9069\u5207\u306b\u8a2d\u8a08\u3055\u308c\u305f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u3001\u4e0d\u6b63\u30a2\u30af\u30bb\u30b9\u3084\u60c5\u5831\u6f0f\u6d29\u306a\u3069\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u3092\u5927\u5e45\u306b\u8efd\u6e1b\u3057\u307e\u3059\u3002<br>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Ruby on Rails\u306b\u304a\u3051\u308b\u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306e\u4e3b\u8981\u306a\u8981\u7d20\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-35\">CSRF\u4fdd\u8b77\u3068Strong Parameters\u306e\u9069\u5207\u306a\u4f7f\u7528<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-36\">CSRF\uff08Cross-Site Request Forgery\uff09\u4fdd\u8b77<\/h4>\n\n\n\n<p>CSRF\u306f\u3001\u653b\u6483\u8005\u304c\u6b63\u898f\u30e6\u30fc\u30b6\u30fc\u306b\u610f\u56f3\u3057\u306a\u3044\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3055\u305b\u308b\u653b\u6483\u624b\u6cd5\u3067\u3059\u3002Rails \u306b\u306f CSRF \u5bfe\u7b56\u304c\u6a19\u6e96\u3067\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u9069\u5207\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class ApplicationController &lt; ActionController::Base\n  protect_from_forgery with: :exception\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u3001\u3059\u3079\u3066\u306e\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u3068AJAX\u30ea\u30af\u30a8\u30b9\u30c8\u306bCSRF\u30c8\u30fc\u30af\u30f3\u304c\u8981\u6c42\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-37\">Strong Parameters<\/h4>\n\n\n\n<p>Strong Parameters \u306f\u3001\u30de\u30b9\u30a2\u30b5\u30a4\u30f3\u30e1\u30f3\u30c8\u8106\u5f31\u6027\u304b\u3089\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306e\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class ArticlesController &lt; ApplicationController\n  def create\n    @article = Article.new(article_params)\n    # ...\n  end\n\n  private\n\n  def article_params\n    params.require(:article).permit(:title, :content)\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001\u660e\u793a\u7684\u306b\u8a31\u53ef\u3055\u308c\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u307f\u304c\u4f7f\u7528\u3055\u308c\u3001\u4e0d\u6b63\u306a\u30c7\u30fc\u30bf\u306e\u633f\u5165\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-38\">\u8a8d\u8a3c\u30fb\u8a8d\u53ef\u30b7\u30b9\u30c6\u30e0\u3068\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u9023\u643a\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u8a8d\u8a3c\u30fb\u8a8d\u53ef\u30b7\u30b9\u30c6\u30e0\u3068\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u9069\u5207\u306b\u9023\u643a\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-39\">Devise\u3092\u4f7f\u7528\u3057\u305f\u8a8d\u8a3c\u306e\u4f8b<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  devise_for :users\n\n  authenticate :user do\n    resources :articles\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u3001<code>articles<\/code> \u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306f\u8a8d\u8a3c\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u306b\u5236\u9650\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-40\">CanCanCan\u3092\u4f7f\u7528\u3057\u305f\u8a8d\u53ef\u306e\u4f8b<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class ArticlesController &lt; ApplicationController\n  load_and_authorize_resource\n\n  def show\n    # @article \u306f\u81ea\u52d5\u7684\u306b\u30ed\u30fc\u30c9\u3055\u308c\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u304c\u30c1\u30a7\u30c3\u30af\u3055\u308c\u307e\u3059\n  end\nend<\/pre>\n\n\n\n<p><code>routes.rb<\/code> \u30d5\u30a1\u30a4\u30eb\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u7d30\u304b\u306a\u6a29\u9650\u5236\u5fa1\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-41\">\u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c8\u306e\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-42\">\u7ba1\u7406\u8005\u7528\u30eb\u30fc\u30c8\u306e\u4fdd\u8b77<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  namespace :admin do\n    resources :articles\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u540d\u524d\u7a7a\u9593\u3092\u4f7f\u7528\u3057\u3001<code>AdminController<\/code> \u3067\u8a8d\u8a3c\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u3001\u7ba1\u7406\u8005\u5c02\u7528\u306e\u30eb\u30fc\u30c8\u3092\u7c21\u5358\u306b\u4fdd\u8b77\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class AdminController &lt; ApplicationController\n  before_action :authenticate_admin!\n\n  private\n\n  def authenticate_admin!\n    redirect_to root_path unless current_user&amp;.admin?\n  end\nend<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-43\">SSL\/TLS \u306e\u5f37\u5236\u3068HTTPS\u5316<\/h3>\n\n\n\n<p>\u30bb\u30ad\u30e5\u30a2\u306a\u901a\u4fe1\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001HTTPS \u3092\u5f37\u5236\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.configure do\n  config.force_ssl = true\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u3001\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304cHTTPS\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-44\">\u305d\u306e\u4ed6\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-45\"><strong>\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406<\/strong><\/h4>\n\n\n\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3092\u9069\u5207\u306b\u8a2d\u5b9a\u3057\u3001\u91cd\u8981\u306a\u64cd\u4f5c\u5f8c\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u518d\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-46\"><strong>\u30ec\u30fc\u30c8\u5236\u9650<\/strong><\/h4>\n\n\n\n<p>\u7279\u5b9a\u306e\u30eb\u30fc\u30c8\u306b\u5bfe\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u3092\u5236\u9650\u3057\u3001DoS\u653b\u6483\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   # Gemfile\n   gem 'rack-attack'\n\n   # config\/initializers\/rack_attack.rb\n   class Rack::Attack\n     throttle('req\/ip', limit: 300, period: 5.minutes) do |req|\n       req.ip\n     end\n   end<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-47\"><strong>\u30d1\u30e9\u30e1\u30fc\u30bf\u691c\u8a3c<\/strong><\/h4>\n\n\n\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u9069\u5207\u306b\u691c\u8a3c\u3057\u3001\u4e0d\u6b63\u306a\u5165\u529b\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-48\"><strong>\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/strong><\/h4>\n\n\n\n<p>\u30ab\u30b9\u30bf\u30e0\u30a8\u30e9\u30fc\u30da\u30fc\u30b8\u3092\u8a2d\u5b9a\u3057\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u95a2\u3059\u308b\u60c5\u5831\u6f0f\u6d29\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-49\">\u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306e\u91cd\u8981\u6027\u3068\u30e1\u30ea\u30c3\u30c8<\/h3>\n\n\n\n<p>\u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u5f97\u3089\u308c\u307e\u3059\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u4e0d\u6b63\u30a2\u30af\u30bb\u30b9\u306e\u9632\u6b62<\/strong>: \u9069\u5207\u306a\u8a8d\u8a3c\u30fb\u8a8d\u53ef\u306b\u3088\u308a\u3001\u6a5f\u5bc6\u60c5\u5831\u3084\u91cd\u8981\u306a\u6a5f\u80fd\u3078\u306e\u4e0d\u6b63\u30a2\u30af\u30bb\u30b9\u3092\u9632\u304e\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u60c5\u5831\u6f0f\u6d29\u30ea\u30b9\u30af\u306e\u4f4e\u6e1b<\/strong>: \u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3084HTTPS\u5f37\u5236\u306b\u3088\u308a\u3001\u6a5f\u5bc6\u60c5\u5831\u306e\u6f0f\u6d29\u30ea\u30b9\u30af\u3092\u8efd\u6e1b\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30e6\u30fc\u30b6\u30fc\u4fe1\u983c\u306e\u7372\u5f97<\/strong>: \u30bb\u30ad\u30e5\u30a2\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u4fe1\u983c\u3092\u5f97\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30b3\u30f3\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u306e\u9075\u5b88<\/strong>: \u591a\u304f\u306e\u696d\u754c\u6a19\u6e96\u3084\u30ec\u30ae\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u8981\u6c42\u3055\u308c\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8981\u4ef6\u3092\u6e80\u305f\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u30bb\u30ad\u30e5\u30a2\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306f\u3001Ruby on Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5168\u4f53\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5927\u304d\u304f\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002<br>\u5e38\u306b\u6700\u65b0\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u5b66\u3073\u3001\u9069\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5b89\u5168\u3067\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u30fb\u7dad\u6301\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7ba1\u7406\u6226\u7565\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304d\u307e\u3059\u3002<br>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u540c\u69d8\u306b\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3082\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u8a08\u306b\u304a\u3044\u3066\u91cd\u8981\u306a\u8981\u7d20\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-50\">7. \u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7ba1\u7406\u6226\u7565<\/h2>\n\n\n\n<p>\u5927\u898f\u6a21\u306aRuby on Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u30fb\u904b\u7528\u3059\u308b\u969b\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u7ba1\u7406\u306f\u8907\u96d1\u3055\u3092\u5897\u3057\u3001\u69d8\u3005\u306a\u8ab2\u984c\u306b\u76f4\u9762\u3057\u307e\u3059\u3002<br>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3051\u308b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7ba1\u7406\u306e\u52b9\u679c\u7684\u306a\u6226\u7565\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-51\">\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3068\u30a8\u30f3\u30b8\u30f3\u3092\u6d3b\u7528\u3057\u305f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u5206\u5272<\/h3>\n\n\n\n<p>\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u6a5f\u80fd\u3054\u3068\u306b\u30b3\u30fc\u30c9\u3092\u5206\u5272\u3057\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<br>Ruby on Rails\u306e\u30a8\u30f3\u30b8\u30f3\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3082\u542b\u3081\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u52b9\u679c\u7684\u306b\u5206\u5272\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-52\">\u30a8\u30f3\u30b8\u30f3\u306e\u4f5c\u6210<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   rails plugin new my_engine --mountable<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-53\">\u30a8\u30f3\u30b8\u30f3\u5185\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u5b9a\u7fa9<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   # my_engine\/config\/routes.rb\n   MyEngine::Engine.routes.draw do\n     resources :articles\n   end<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-54\">\u30e1\u30a4\u30f3\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u30a8\u30f3\u30b8\u30f3\u306e\u30de\u30a6\u30f3\u30c8<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   # config\/routes.rb\n   Rails.application.routes.draw do\n     mount MyEngine::Engine, at: \"\/my_engine\"\n   end<\/pre>\n\n\n\n<p>\u3053\u306e\u65b9\u6cd5\u306b\u3088\u308a\u3001\u5927\u898f\u6a21\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u6a5f\u80fd\u3054\u3068\u306b\u5206\u5272\u3057\u3001\u5404\u90e8\u5206\u3092\u72ec\u7acb\u3057\u3066\u958b\u767a\u30fb\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-55\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3068\u30c7\u30d7\u30ed\u30a4\u6226\u7565<\/h3>\n\n\n\n<p>\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u306e\u5909\u66f4\u304c\u5e83\u7bc4\u56f2\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u614e\u91cd\u306a\u7ba1\u7406\u3068\u30c7\u30d7\u30ed\u30a4\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306e\u30d9\u30b9\u30c8\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u30103STEP\u3011<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ol class=\"wp-block-list\">\n<li><strong>\u30d6\u30e9\u30f3\u30c1\u6226\u7565\u306e\u6d3b\u7528<\/strong>: \u5927\u304d\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u5909\u66f4\u306f\u5c02\u7528\u306e\u30d6\u30e9\u30f3\u30c1\u3067\u958b\u767a\u3057\u3001\u5341\u5206\u306a\u30c6\u30b9\u30c8\u5f8c\u306b\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u5909\u66f4\u5c65\u6b74\u306e\u7ba1\u7406<\/strong>: \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u5927\u304d\u306a\u5909\u66f4\u306fCHANGELOG\u306b\u8a18\u9332\u3057\u3001\u30c1\u30fc\u30e0\u5185\u3067\u5171\u6709\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u306e\u5fb9\u5e95<\/strong>: \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u5909\u66f4\u306f\u8907\u6570\u306e\u76ee\u3067\u30ec\u30d3\u30e5\u30fc\u3057\u3001\u6f5c\u5728\u7684\u306a\u554f\u984c\u3092\u65e9\u671f\u306b\u767a\u898b\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-56\">\u30c7\u30d7\u30ed\u30a4\u6226\u7565<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u6bb5\u968e\u7684\u30c7\u30d7\u30ed\u30a4<\/strong>: \u5927\u898f\u6a21\u306a\u5909\u66f4\u306f\u3001\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u74b0\u5883\u3067\u306e\u30c6\u30b9\u30c8\u5f8c\u3001\u4e00\u90e8\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u5bfe\u3057\u3066\u6bb5\u968e\u7684\u306b\u30ed\u30fc\u30eb\u30a2\u30a6\u30c8\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30bc\u30ed\u30c0\u30a6\u30f3\u30bf\u30a4\u30e0\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8<\/strong>: \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u5909\u66f4\u3092\u542b\u3080\u30c7\u30d7\u30ed\u30a4\u3067\u3082\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3055\u305b\u306a\u3044\u30c6\u30af\u30cb\u30c3\u30af\u3092\u63a1\u7528\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u8a08\u753b<\/strong>: \u554f\u984c\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u5099\u3048\u3001\u8fc5\u901f\u306b\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3067\u304d\u308b\u8a08\u753b\u3092\u7acb\u3066\u3066\u304a\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-57\">\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-58\"><strong>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6d3b\u7528<\/strong><\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   # config\/application.rb\n   config.eager_load_namespaces &lt;&lt; Rails::Engine<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-59\"><strong>\u4e0d\u8981\u306a\u30eb\u30fc\u30c8\u306e\u524a\u9664<\/strong><\/h4>\n\n\n\n<p>\u5b9a\u671f\u7684\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u3092\u898b\u76f4\u3057\u3001\u4e0d\u8981\u306a\u30eb\u30fc\u30c8\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-60\"><strong>\u5236\u7d04\u306e\u52b9\u679c\u7684\u306a\u4f7f\u7528<\/strong><\/h4>\n\n\n\n<p>\u8907\u96d1\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30bf\u30fc\u30f3\u306b\u306f\u5236\u7d04\u3092\u4f7f\u7528\u3057\u3001\u30de\u30c3\u30c1\u30f3\u30b0\u901f\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-61\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30c6\u30b9\u30c8\u3068\u54c1\u8cea\u4fdd\u8a3c<\/h3>\n\n\n\n<p>\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u5305\u62ec\u7684\u306a\u30c6\u30b9\u30c8\u6226\u7565\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-62\"><strong>\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8<\/strong><\/h4>\n\n\n\n<p>\u500b\u3005\u306e\u30eb\u30fc\u30c8\u304c\u6b63\u3057\u304f\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   # test\/integration\/routing_test.rb\n   require 'test_helper'\n\n   class RoutingTest &lt; ActionDispatch::IntegrationTest\n     test \"routes to articles index\" do\n       assert_routing '\/articles', controller: 'articles', action: 'index'\n     end\n   end<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-63\"><strong>\u7d71\u5408\u30c6\u30b9\u30c8<\/strong><\/h4>\n\n\n\n<p>\u5b9f\u969b\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u901a\u3058\u3066\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-64\"><strong>\u8ca0\u8377\u30c6\u30b9\u30c8<\/strong><\/h4>\n\n\n\n<p>\u5927\u91cf\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u3042\u308b\u5834\u5408\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-65\">\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u52b9\u679c\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7ba1\u7406\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-66\"><strong>\u4e00\u8cab\u6027\u306e\u3042\u308b\u547d\u540d\u898f\u5247<\/strong><\/h4>\n\n\n\n<p>\u5927\u898f\u6a21\u30c1\u30fc\u30e0\u3067\u306e\u958b\u767a\u3067\u306f\u3001\u30eb\u30fc\u30c8\u540d\u3084\u30d1\u30b9\u306e\u547d\u540d\u898f\u5247\u3092\u7d71\u4e00\u3057\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u5316\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-67\"><strong>\u540d\u524d\u7a7a\u9593\u306e\u52b9\u679c\u7684\u306a\u4f7f\u7528<\/strong><\/h4>\n\n\n\n<p>\u6a5f\u80fd\u3084\u5f79\u5272\u3054\u3068\u306b\u9069\u5207\u306a\u540d\u524d\u7a7a\u9593\u3092\u4f7f\u7528\u3057\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   namespace :admin do\n     resources :articles, :comments\n   end\n\n   namespace :api do\n     namespace :v1 do\n       resources :users\n     end\n   end<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-68\"><strong>\u5171\u901a\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30bf\u30fc\u30f3\u306e\u62bd\u51fa<\/strong><\/h4>\n\n\n\n<p>\u983b\u7e41\u306b\u4f7f\u7528\u3055\u308c\u308b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30bf\u30fc\u30f3\u306f\u3001concerns\u3068\u3057\u3066\u62bd\u51fa\u3057\u518d\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   concern :commentable do\n     resources :comments\n   end\n\n   resources :articles, concerns: :commentable\n   resources :posts, concerns: :commentable<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-69\"><strong>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u6587\u66f8\u5316<\/strong><\/h4>\n\n\n\n<p>\u8907\u96d1\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u3084\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306f\u3001\u30b3\u30e1\u30f3\u30c8\u3084\u5225\u9014\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u8aac\u660e\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-70\"><strong>\u5b9a\u671f\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u76e3\u67fb<\/strong><\/h4>\n\n\n\n<p>\u4f7f\u7528\u3055\u308c\u3066\u3044\u306a\u3044\u30eb\u30fc\u30c8\u3084\u975e\u52b9\u7387\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30bf\u30fc\u30f3\u3092\u5b9a\u671f\u7684\u306b\u898b\u76f4\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u6700\u9069\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-71\"><strong>API\u30d0\u30fc\u30b8\u30e7\u30cb\u30f3\u30b0\u306e\u8003\u616e<\/strong><\/h4>\n\n\n\n<p>API\u3092\u63d0\u4f9b\u3059\u308b\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30d0\u30fc\u30b8\u30e7\u30cb\u30f3\u30b0\u3092\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30ec\u30d9\u30eb\u3067\u7ba1\u7406\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   namespace :api do\n     namespace :v1 do\n       # V1 API routes\n     end\n     namespace :v2 do\n       # V2 API routes\n     end\n   end<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-72\"><strong>\u52d5\u7684\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u614e\u91cd\u306a\u4f7f\u7528<\/strong><\/h4>\n\n\n\n<p>\u52d5\u7684\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\uff08\u4f8b\uff1a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u57fa\u3065\u304f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\uff09\u306f\u4fbf\u5229\u3067\u3059\u304c\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-73\"><strong>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u53ef\u8996\u5316<\/strong><\/h4>\n\n\n\n<p>\u5927\u898f\u6a21\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u69cb\u9020\u3092\u8996\u899a\u5316\u3059\u308b\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3001\u5168\u4f53\u50cf\u3092\u628a\u63e1\u3057\u3084\u3059\u304f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   gem 'rails-erd'<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-74\"><strong>\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u306e\u4e00\u5143\u7ba1\u7406<\/strong><\/h4>\n\n\n\n<p>\u30ab\u30b9\u30bf\u30e0404\u3084500\u30a8\u30e9\u30fc\u30da\u30fc\u30b8\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u9069\u5207\u306b\u8a2d\u5b9a\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   # config\/application.rb\n   config.exceptions_app = self.routes\n\n   # config\/routes.rb\n   match \"\/404\", to: \"errors#not_found\", via: :all\n   match \"\/500\", to: \"errors#internal_server_error\", via: :all<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-75\"><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0<\/strong><\/h4>\n\n\n\n<p>New Relic\u3084Scout\u7b49\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u672c\u756a\u74b0\u5883\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u7d99\u7d9a\u7684\u306b\u76e3\u8996\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-76\">\u5b9f\u969b\u306e\u5927\u898f\u6a21Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u4e8b\u4f8b<\/h3>\n\n\n\n<p>GitHub\u3001Shopify\u3001Airbnb\u306a\u3069\u306e\u5927\u898f\u6a21Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u6226\u7565\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u52b9\u679c\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7ba1\u7406\u3092\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-message\"><div class=\"memo sng-shadow-0\" style=\"border-radius:0px;background-color:#b4e0fa;color:#009EF3\"><div class=\"memo_ttl dfont\"><span class=\"sng-box-msg__icon\" style=\"background:#009EF3\"><i class=\"far fa-lightbulb\"><\/i><\/span><div class=\"sng-box-msg__title\">\u5404\u30b5\u30a4\u30c8\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<\/div><\/div><div class=\"sng-box-msg__contents\">\n<ul class=\"wp-block-list\">\n<li><strong>GitHub<\/strong>: \u6a5f\u80fd\u3054\u3068\u306b\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3055\u308c\u305f\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u63a1\u7528\u3057\u3001\u5404\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u72ec\u81ea\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u7ba1\u7406\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>Shopify<\/strong>: API\u306e\u30d0\u30fc\u30b8\u30e7\u30cb\u30f3\u30b0\u3092\u53b3\u683c\u306b\u7ba1\u7406\u3057\u3001\u8907\u6570\u30d0\u30fc\u30b8\u30e7\u30f3\u306eAPI\u3092\u540c\u6642\u306b\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>Airbnb<\/strong>: \u56fd\u969b\u5316\u5bfe\u5fdc\u306e\u305f\u3081\u3001\u30ed\u30b1\u30fc\u30eb\u306b\u57fa\u3065\u3044\u305f\u52d5\u7684\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/div><\/div><\/div>\n\n\n\n<p>\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7ba1\u7406\u306f\u3001\u5358\u306a\u308b\u6280\u8853\u7684\u306a\u8ab2\u984c\u3067\u306f\u306a\u304f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u5168\u4f53\u306b\u95a2\u308f\u308b\u6226\u7565\u7684\u306a\u53d6\u308a\u7d44\u307f\u3067\u3059\u3002<br>\u9069\u5207\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u3001\u305d\u3057\u3066\u30c1\u30fc\u30e0\u5168\u4f53\u3067\u306e\u4e00\u8cab\u6027\u306e\u3042\u308b\u5b9f\u8df5\u3092\u901a\u3058\u3066\u3001\u5927\u898f\u6a21\u3067\u8907\u96d1\u306aRails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3082\u3001\u52b9\u7387\u7684\u3067\u4fdd\u5b88\u6027\u306e\u9ad8\u3044\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7ba1\u7406\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30c6\u30b9\u30c8\u3068\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u5b66\u3093\u3067\u3044\u304d\u307e\u3059\u3002<br>\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3044\u3066\u3001\u5805\u7262\u306a\u30c6\u30b9\u30c8\u6226\u7565\u3068\u30c7\u30d0\u30c3\u30b0\u6280\u8853\u306f\u4e0d\u53ef\u6b20\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-77\">8. \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30c6\u30b9\u30c8\u3068\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5<\/h2>\n\n\n\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f Rails \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u91cd\u8981\u306a\u90e8\u5206\u3067\u3042\u308a\u3001\u9069\u5207\u306b\u30c6\u30b9\u30c8\u3068\u30c7\u30d0\u30c3\u30b0\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4fe1\u983c\u6027\u3068\u4fdd\u5b88\u6027\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30c6\u30b9\u30c8\u65b9\u6cd5\u3068\u30c7\u30d0\u30c3\u30b0\u6280\u8853\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-78\">RSpec\u3092\u4f7f\u7528\u3057\u305f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u4f5c\u6210<\/h3>\n\n\n\n<p>RSpec \u306f Ruby on Rails \u306e\u30c6\u30b9\u30c8\u306b\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<br>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30c6\u30b9\u30c8\u3082\u7c21\u5358\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># spec\/routing\/articles_routing_spec.rb\nrequire \"rails_helper\"\n\nRSpec.describe ArticlesController, type: :routing do\n  describe \"routing\" do\n    it \"routes to #index\" do\n      expect(get: \"\/articles\").to route_to(\"articles#index\")\n    end\n\n    it \"routes to #show\" do\n      expect(get: \"\/articles\/1\").to route_to(\"articles#show\", id: \"1\")\n    end\n\n    it \"routes to #create\" do\n      expect(post: \"\/articles\").to route_to(\"articles#create\")\n    end\n\n    # \u4ed6\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3082\u540c\u69d8\u306b\u30c6\u30b9\u30c8\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u30c6\u30b9\u30c8\u3067\u306f\u3001\u5404\u30eb\u30fc\u30c8\u304c\u6b63\u3057\u3044\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3068\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-79\">\u7d71\u5408\u30c6\u30b9\u30c8\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30b9\u30c8<\/h3>\n\n\n\n<p>\u7d71\u5408\u30c6\u30b9\u30c8\u3067\u306f\u3001\u5b9f\u969b\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3057\u3066\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># test\/integration\/article_flow_test.rb\nrequire 'test_helper'\n\nclass ArticleFlowTest &lt; ActionDispatch::IntegrationTest\n  test \"can see the articles index\" do\n    get \"\/articles\"\n    assert_response :success\n    assert_select \"h1\", \"Articles\"\n  end\n\n  test \"can create an article\" do\n    post \"\/articles\",\n         params: { article: { title: \"New Article\", body: \"This is a test.\" } }\n    assert_response :redirect\n    follow_redirect!\n    assert_response :success\n    assert_select \"h1\", \"New Article\"\n  end\nend<\/pre>\n\n\n\n<p>\u3053\u306e\u7d71\u5408\u30c6\u30b9\u30c8\u3067\u306f\u3001\u5b9f\u969b\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30d5\u30ed\u30fc\u3092\u901a\u3058\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-80\">rails routes \u30b3\u30de\u30f3\u30c9\u3068\u30ed\u30b0\u3092\u6d3b\u7528\u3057\u305f\u30c7\u30d0\u30c3\u30b0\u30c6\u30af\u30cb\u30c3\u30af<\/h3>\n\n\n\n<p><code>rails routes<\/code> \u30b3\u30de\u30f3\u30c9\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5168\u30eb\u30fc\u30c8\u3092\u8868\u793a\u3059\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ rails routes<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-81\">\u7279\u5b9a\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306b\u95a2\u9023\u3059\u308b\u30eb\u30fc\u30c8\u306e\u307f\u3092\u8868\u793a\u3059\u308b\u5834\u5408<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ rails routes -c articles<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-82\">\u7279\u5b9a\u306e\u30d1\u30b9\u306b\u4e00\u81f4\u3059\u308b\u30eb\u30fc\u30c8\u3092\u691c\u7d22\u3059\u308b\u5834\u5408<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ rails routes -g \/articles<\/pre>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u554f\u984c\u3092\u7d20\u65e9\u304f\u7279\u5b9a\u3057\u3001\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-83\">\u30ed\u30b0\u3092\u6d3b\u7528\u3057\u305f\u30c7\u30d0\u30c3\u30b0<\/h3>\n\n\n\n<p>\u958b\u767a\u74b0\u5883\u3067\u306f\u3001Rails \u306e\u30ed\u30b0\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u60c5\u5831\u304c\u8a73\u7d30\u306b\u8a18\u9332\u3055\u308c\u307e\u3059\u3002<br>\u30ed\u30b0\u3092\u6ce8\u610f\u6df1\u304f\u89b3\u5bdf\u3059\u308b\u3053\u3068\u3067\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u554f\u984c\u3092\u7279\u5b9a\u3067\u304d\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Started GET \"\/articles\/1\" for ::1 at 2023-09-05 12:00:00 +0900\nProcessing by ArticlesController#show as HTML\n  Parameters: {\"id\"=&gt;\"1\"}<\/pre>\n\n\n\n<p>\u3053\u306e\u30ed\u30b0\u304b\u3089\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3069\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3068\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3055\u308c\u305f\u304b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-84\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c7\u30d0\u30c3\u30b0\u7528\u306e\u30c4\u30fc\u30eb<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-85\"><strong>traceroute gem<\/strong><\/h4>\n\n\n\n<p>\u672a\u4f7f\u7528\u306e\u30eb\u30fc\u30c8\u3084\u3001\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u306a\u3044\u30a2\u30af\u30b7\u30e7\u30f3\u3078\u306e\u30eb\u30fc\u30c8\u3092\u691c\u51fa\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   # Gemfile\n   gem 'traceroute'<\/pre>\n\n\n\n<div class=\"wp-block-sgb-message\"><div class=\"memo sng-shadow-0\" style=\"border-radius:0px;background-color:#b4e0fa;color:#009EF3\"><div class=\"memo_ttl dfont\"><span class=\"sng-box-msg__icon\" style=\"background:#009EF3\"><i class=\"far fa-lightbulb\"><\/i><\/span><div class=\"sng-box-msg__title\">\u4f7f\u7528\u65b9\u6cd5<\/div><\/div><div class=\"sng-box-msg__contents\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   $ rake traceroute<\/pre>\n<\/div><\/div><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-86\"><strong>rails-routes-viewer gem<\/strong><\/h4>\n\n\n\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u8996\u899a\u7684\u306b\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   # Gemfile\n   gem 'rails-routes-viewer'<\/pre>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u554f\u984c\u3092\u3088\u308a\u52b9\u7387\u7684\u306b\u767a\u898b\u3057\u3001\u89e3\u6c7a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-87\">\u4e00\u822c\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u95a2\u9023\u306e\u554f\u984c\u3068\u89e3\u6c7a\u65b9\u6cd5<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-88\"><strong>\u30eb\u30fc\u30c8\u306e\u9806\u5e8f<\/strong><\/h4>\n\n\n\n<p>\u30eb\u30fc\u30c8\u306e\u5b9a\u7fa9\u9806\u5e8f\u304c\u91cd\u8981\u3067\u3059\u3002<br>\u3088\u308a\u5177\u4f53\u7684\u306a\u30eb\u30fc\u30c8\u3092\u5148\u306b\u5b9a\u7fa9\u3057\u3001\u4e00\u822c\u7684\u306a\u30eb\u30fc\u30c8\u3092\u5f8c\u306b\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-89\"><strong>\u540d\u524d\u4ed8\u304d\u30eb\u30fc\u30c8\u306e\u885d\u7a81<\/strong><\/h4>\n\n\n\n<p>\u540c\u3058\u540d\u524d\u306e\u30eb\u30fc\u30c8\u304c\u8907\u6570\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u6700\u5f8c\u306b\u5b9a\u7fa9\u3055\u308c\u305f\u3082\u306e\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u3059\u3002<br>\u30e6\u30cb\u30fc\u30af\u306a\u540d\u524d\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001 <code>as<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u660e\u793a\u7684\u306b\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-90\"><strong>\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u8aa4\u3063\u305f\u89e3\u91c8<\/strong><\/h4>\n\n\n\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u6b63\u3057\u304f\u89e3\u91c8\u3055\u308c\u306a\u3044\u5834\u5408\u3001\u5236\u7d04\u3092\u4f7f\u7528\u3057\u3066\u5f62\u5f0f\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   get 'articles\/:id', to: 'articles#show', constraints: { id: \/\\d+\/ }<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-91\"><strong>\u540d\u524d\u7a7a\u9593\u306e\u554f\u984c<\/strong><\/h4>\n\n\n\n<p>\u540d\u524d\u7a7a\u9593\u3092\u4f7f\u7528\u3059\u308b\u969b\u3001 <code>module<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u4f7f\u7528\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   namespace :admin do\n     resources :articles, module: 'admin'\n   end<\/pre>\n\n\n\n<p>\u52b9\u679c\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30b9\u30c8\u3068\u30c7\u30d0\u30c3\u30b0\u306f\u3001Rails \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u54c1\u8cea\u3068\u4fdd\u5b88\u6027\u3092\u5927\u304d\u304f\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002<br>\u5b9a\u671f\u7684\u306a\u30c6\u30b9\u30c8\u306e\u5b9f\u884c\u3068\u3001\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u969b\u306e\u8fc5\u901f\u306a\u30c7\u30d0\u30c3\u30b0\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u640d\u306a\u3046\u554f\u984c\u3092\u4e8b\u524d\u306b\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Rails 7.0\u4ee5\u964d\u306e\u65b0\u6a5f\u80fd\u3068\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u6700\u65b0\u30c8\u30ec\u30f3\u30c9\u306b\u3064\u3044\u3066\u63a2\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br>\u5e38\u306b\u9032\u5316\u3092\u7d9a\u3051\u308b Rails \u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3044\u3066\u3001\u6700\u65b0\u306e\u6a5f\u80fd\u3084\u624b\u6cd5\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-92\">9. Rails 7.0\u4ee5\u964d\u306e\u65b0\u6a5f\u80fd\uff1a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u6700\u65b0\u30c8\u30ec\u30f3\u30c9<\/h2>\n\n\n\n<p>Ruby on Rails \u306f\u5e38\u306b\u9032\u5316\u3092\u7d9a\u3051\u3066\u304a\u308a\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3082\u4f8b\u5916\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br>Rails 7.0\u4ee5\u964d\u3001\u3044\u304f\u3064\u304b\u306e\u91cd\u8981\u306a\u65b0\u6a5f\u80fd\u3084\u6539\u5584\u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002<br>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u65b0\u6a5f\u80fd\u3068\u6700\u65b0\u30c8\u30ec\u30f3\u30c9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3001\u5f93\u6765\u306e\u624b\u6cd5\u3068\u306e\u6bd4\u8f03\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-93\">Rails 7.0\u306e\u4e3b\u8981\u306a\u65b0\u6a5f\u80fd<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-94\"><strong>\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u30bf\u30a4\u30d7\u5236\u7d04<\/strong><\/h4>\n\n\n\n<p>Rails 7.0\u3067\u306f\u3001\u30eb\u30fc\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u3088\u308a\u53b3\u5bc6\u306a\u578b\u30c1\u30a7\u30c3\u30af\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">get '\/articles\/:id', to: 'articles#show', constraints: { id: \/\\d+\/ }<\/pre>\n\n\n\n<p>\u3053\u308c\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">get '\/articles\/:id(.:format)', to: 'articles#show', id: \/\\d+\/<\/pre>\n\n\n\n<p>\u3053\u306e\u5909\u66f4\u306b\u3088\u308a\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u5b9a\u7fa9\u304c\u3088\u308a\u76f4\u611f\u7684\u306b\u306a\u308a\u3001\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u304c\u5411\u4e0a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-95\"><strong>\u30c0\u30a4\u30ec\u30af\u30c8\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<\/strong><\/h4>\n\n\n\n<p><code>routes.draw<\/code> \u30d6\u30ed\u30c3\u30af\u306e\u5916\u90e8\u3067\u30eb\u30fc\u30c8\u3092\u5b9a\u7fa9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u52d5\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u5b9f\u88c5\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Rails.application.routes.draw do\n  get '\/hello', to: 'welcome#index'\nend\n\n# \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4ed6\u306e\u5834\u6240\u3067\nRails.application.routes.recognize_path('\/hello')<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-96\"><strong>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u6700\u9069\u5316<\/strong><\/h4>\n\n\n\n<p>Rails 7.0\u3067\u306f\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30a8\u30f3\u30b8\u30f3\u306e\u5185\u90e8\u5b9f\u88c5\u304c\u6700\u9069\u5316\u3055\u308c\u3001\u7279\u306b\u5927\u898f\u6a21\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-97\">Rails\u30a8\u30c3\u30b8\u306e\u65b0\u6a5f\u80fd\u3068\u4f7f\u7528\u4f8b<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-98\"><strong>\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u306e\u5f37\u5316<\/strong><\/h4>\n\n\n\n<p>\u958b\u767a\u4e2d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001\u3088\u308a\u67d4\u8edf\u306a\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u304c\u691c\u8a0e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">get '\/articles\/:year\/:month\/:day', to: 'articles#index',\n    constraints: { year: \/\\d{4}\/, month: \/\\d{2}\/, day: \/\\d{2}\/ }<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-99\"><strong>\u6761\u4ef6\u4ed8\u304d\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<\/strong><\/h4>\n\n\n\n<p>\u7279\u5b9a\u306e\u6761\u4ef6\u4e0b\u3067\u306e\u307f\u6709\u52b9\u306b\u306a\u308b\u30eb\u30fc\u30c8\u306e\u5b9a\u7fa9\u304c\u5bb9\u6613\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">get '\/admin', to: 'admin#index', if: -&gt; { Rails.env.production? }<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-100\">\u5f93\u6765\u306e\u624b\u6cd5\u3068\u306e\u6bd4\u8f03\u3068\u79fb\u884c\u6226\u7565<\/h3>\n\n\n\n<p>\u65b0\u6a5f\u80fd\u306f\u57fa\u672c\u7684\u306b\u5f8c\u65b9\u4e92\u63db\u6027\u3092\u7dad\u6301\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">\u65b0\u6a5f\u80fd\u5c0e\u5165\u6642\u306e\u6ce8\u610f\u3059\u308b\u3079\u304d3\u70b9<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ol class=\"wp-block-list\">\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a<\/strong>: \u65b0\u3057\u3044\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30a8\u30f3\u30b8\u30f3\u306f\u591a\u304f\u306e\u5834\u5408\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u975e\u5e38\u306b\u8907\u96d1\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u3067\u306f\u78ba\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u306e\u5909\u66f4<\/strong>: \u4e00\u90e8\u306e\u8a18\u6cd5\u304c\u7c21\u7565\u5316\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30c1\u30fc\u30e0\u30e1\u30f3\u30d0\u30fc\u5168\u54e1\u304c\u65b0\u3057\u3044\u8a18\u6cd5\u3092\u7406\u89e3\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n\n\n<li><strong>\u6bb5\u968e\u7684\u306a\u79fb\u884c<\/strong>: \u5927\u898f\u6a21\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u65b0\u6a5f\u80fd\u3092\u6bb5\u968e\u7684\u306b\u5c0e\u5165\u3057\u3001\u5341\u5206\u306a\u30c6\u30b9\u30c8\u3092\u884c\u3046\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-101\">\u4eca\u5f8c\u306e\u5c55\u671b<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>GraphQL\u7d71\u5408<\/strong>: RESTful\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3068GraphQL\u306e\u30b7\u30fc\u30e0\u30ec\u30b9\u306a\u7d71\u5408\u304c\u671f\u5f85\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u5bfe\u5fdc<\/strong>: \u5206\u6563\u30b7\u30b9\u30c6\u30e0\u3084\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u9069\u3057\u305f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u306e\u5f37\u5316\u304c\u4e88\u60f3\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>AI\u306b\u3088\u308b\u6700\u9069\u5316<\/strong>: \u5c06\u6765\u7684\u306b\u306f\u3001AI\u3092\u6d3b\u7528\u3057\u305f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u81ea\u52d5\u6700\u9069\u5316\u6a5f\u80fd\u304c\u5c0e\u5165\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-102\">\u6700\u65b0\u6a5f\u80fd\u6d3b\u7528\u306e\u91cd\u8981\u6027<\/h3>\n\n\n\n<p>\u6700\u65b0\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u958b\u767a\u52b9\u7387\u306e\u5411\u4e0a<\/strong>: \u3088\u308a\u76f4\u611f\u7684\u3067\u7c21\u6f54\u306a\u8a18\u6cd5\u306b\u3088\u308a\u3001\u958b\u767a\u901f\u5ea6\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6539\u5584<\/strong>: \u6700\u9069\u5316\u3055\u308c\u305f\u5185\u90e8\u5b9f\u88c5\u306b\u3088\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u4fdd\u5b88\u6027\u306e\u5411\u4e0a<\/strong>: \u65b0\u6a5f\u80fd\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u3068\u4fdd\u5b88\u6027\u304c\u9ad8\u307e\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u65b0\u3057\u3044\u53ef\u80fd\u6027\u306e\u958b\u62d3<\/strong>: \u6700\u65b0\u6a5f\u80fd\u3092\u7406\u89e3\u3057\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u67d4\u8edf\u3067\u5f37\u529b\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u8a08\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>Ruby on Rails\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306f\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4e2d\u6838\u6a5f\u80fd\u306e\u4e00\u3064\u3068\u3057\u3066\u5e38\u306b\u9032\u5316\u3092\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002<br>\u6700\u65b0\u306e\u6a5f\u80fd\u3084\u30c8\u30ec\u30f3\u30c9\u3092\u628a\u63e1\u3057\u3001\u9069\u5207\u306b\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u52b9\u7387\u7684\u3067\u67d4\u8edf\u6027\u306e\u9ad8\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<br>\u5e38\u306b\u5b66\u7fd2\u3092\u7d9a\u3051\u3001\u65b0\u3057\u3044\u53ef\u80fd\u6027\u3092\u63a2\u6c42\u3059\u308b\u3053\u3068\u304c\u3001Rails\u958b\u767a\u8005\u3068\u3057\u3066\u6210\u9577\u3057\u7d9a\u3051\u308b\u305f\u3081\u306e\u9375\u3068\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-103\">10. \u307e\u3068\u3081\uff1a\u52b9\u679c\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306e\u91cd\u8981\u30dd\u30a4\u30f3\u30c8<\/h2>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001Ruby on Rails\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u3001\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u5e45\u5e83\u304f\u30ab\u30d0\u30fc\u3057\u3066\u304d\u307e\u3057\u305f\u3002<br>\u3053\u3053\u3067\u3001\u52b9\u679c\u7684\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306e\u91cd\u8981\u30dd\u30a4\u30f3\u30c8\u3068\u3001\u3055\u3089\u306a\u308b\u5b66\u7fd2\u306e\u305f\u3081\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-104\">\u8aad\u307f\u3084\u3059\u304f\u4fdd\u5b88\u6027\u306e\u9ad8\u3044\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u5b9f\u73fe\u306e\u305f\u3081\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">Rails\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u30106STEP\u3011<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ol class=\"wp-block-list\">\n<li><strong>RESTful\u306a\u8a2d\u8a08\u3092\u57fa\u672c\u3068\u3059\u308b<\/strong>: \u6a19\u6e96\u7684\u306aCRUD\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u6d3b\u7528\u3057\u3001\u76f4\u611f\u7684\u306aURL\u3092\u8a2d\u8a08\u3059\u308b\u3002<\/li>\n\n\n\n<li><strong>\u30ea\u30bd\u30fc\u30b9\u3092\u9069\u5207\u306b\u540d\u524d\u7a7a\u9593\u5316\u3059\u308b<\/strong>: \u95a2\u9023\u3059\u308b\u6a5f\u80fd\u3084\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8ad6\u7406\u7684\u306b\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u3002<\/li>\n\n\n\n<li><strong>\u30eb\u30fc\u30c8\u306e\u9806\u5e8f\u306b\u6ce8\u610f\u3092\u6255\u3046<\/strong>: \u3088\u308a\u5177\u4f53\u7684\u306a\u30eb\u30fc\u30c8\u3092\u5148\u306b\u3001\u4e00\u822c\u7684\u306a\u30eb\u30fc\u30c8\u3092\u5f8c\u306b\u914d\u7f6e\u3059\u308b\u3002<\/li>\n\n\n\n<li><strong>\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u306f\u614e\u91cd\u306b\u4f7f\u7528\u3059\u308b<\/strong>: \u5fc5\u8981\u306a\u5834\u5408\u306e\u307f\u4f7f\u7528\u3057\u3001RESTful\u306a\u8a2d\u8a08\u304b\u3089\u5927\u304d\u304f\u9038\u8131\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3002<\/li>\n\n\n\n<li><strong>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b9a\u671f\u7684\u306b\u78ba\u8a8d\u3059\u308b<\/strong>: \u4e0d\u8981\u306a\u30eb\u30fc\u30c8\u3092\u524a\u9664\u3057\u3001\u5236\u7d04\u3092\u9069\u5207\u306b\u4f7f\u7528\u3059\u308b\u3002<\/li>\n\n\n\n<li><strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5e38\u306b\u610f\u8b58\u3059\u308b<\/strong>: \u8a8d\u8a3c\u30fb\u8a8d\u53ef\u3092\u9069\u5207\u306b\u5b9f\u88c5\u3057\u3001\u8106\u5f31\u6027\u3092\u9632\u3050\u3002<\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-105\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306e\u91cd\u8981\u6027<\/h3>\n\n\n\n<p>\u9069\u5207\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u306f\u3001\u958b\u767a\u52b9\u7387\u3068\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u306b\u5927\u304d\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002<br>\u4f8b\u3048\u3070\u3001\u3042\u308b\u5927\u898f\u6a21E\u30b3\u30de\u30fc\u30b9\u30b5\u30a4\u30c8\u3067\u306f\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u6700\u9069\u5316\u306b\u3088\u308a\u5e73\u5747\u30da\u30fc\u30b8\u30ed\u30fc\u30c9\u6642\u9593\u304c20%\u6539\u5584\u3055\u308c\u3001\u30b3\u30f3\u30d0\u30fc\u30b8\u30e7\u30f3\u7387\u304c5%\u5411\u4e0a\u3057\u305f\u3068\u3044\u3046\u5831\u544a\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-106\">\u7d99\u7d9a\u7684\u306a\u5b66\u7fd2\u306e\u91cd\u8981\u6027<\/h3>\n\n\n\n<p>Ruby on Rails\u306f\u5e38\u306b\u9032\u5316\u3057\u3066\u304a\u308a\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3082\u4f8b\u5916\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br>\u6700\u65b0\u306e\u6a5f\u80fd\u3084\u624b\u6cd5\u3092\u7406\u89e3\u3057\u3001\u9069\u5207\u306b\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u52b9\u7387\u7684\u3067\u67d4\u8edf\u6027\u306e\u9ad8\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-107\">\u3055\u3089\u306a\u308b\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\u3068\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u53c2\u52a0\u306e\u63a8\u5968<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/strong>: Ruby on Rails Guides\uff08https:\/\/guides.rubyonrails.org\/\uff09\u306f\u5e38\u306b\u6700\u65b0\u306e\u60c5\u5831\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>RailsCasts<\/strong>: \u52d5\u753b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u5b9f\u8df5\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u5b66\u3079\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>Ruby on Rails Podcast<\/strong>: \u6700\u65b0\u306e\u30c8\u30ec\u30f3\u30c9\u3084\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u97f3\u58f0\u3067\u5b66\u3079\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>GitHub<\/strong>: \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eRails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30fc\u30c9\u3092\u8aad\u3080\u3053\u3068\u3067\u3001\u5b9f\u8df5\u7684\u306a\u77e5\u8b58\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>RailsConf<\/strong>: \u5e74\u6b21\u30ab\u30f3\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u53c2\u52a0\u3057\u3001\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3068\u4ea4\u6d41\u3059\u308b\u3053\u3068\u3067\u3001\u6700\u65b0\u306e\u52d5\u5411\u3092\u628a\u63e1\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u3001Ruby on Rails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u9aa8\u683c\u3092\u5f62\u6210\u3059\u308b\u91cd\u8981\u306a\u8981\u7d20\u3067\u3059\u3002<br>\u672c\u8a18\u4e8b\u3067\u5b66\u3093\u3060\u6280\u8853\u3084\u8003\u3048\u65b9\u3092\u5b9f\u8df5\u3057\u3001\u5e38\u306b\u5b66\u7fd2\u3092\u7d9a\u3051\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u52b9\u679c\u7684\u3067\u4fdd\u5b88\u6027\u306e\u9ad8\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<br>\u3042\u306a\u305f\u306eRuby on Rails\u958b\u767a\u306e\u65c5\u304c\u3001\u3053\u306e\u8a18\u4e8b\u3092\u304d\u3063\u304b\u3051\u306b\u3055\u3089\u306b\u5145\u5b9f\u3057\u305f\u3082\u306e\u306b\u306a\u308b\u3053\u3068\u3092\u9858\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30de\u30b9\u30bf\u30fc\u3078\u306e\u9053\u306f\u7d42\u308f\u308a\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u65b0\u3057\u3044\u6311\u6226\u3092\u697d\u3057\u307f\u3001\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3068\u5171\u306b\u6210\u9577\u3057\u7d9a\u3051\u3066\u304f\u3060\u3055\u3044\u3002Happy Routing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306b\u304a\u3044\u3066\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u975e\u5e38\u306b\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002\u7279\u306b Ruby on Rails \u3067\u306f\u3001\u9069\u5207\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u8a08\u304c\u958b\u767a\u52b9\u7387\u3068\u4fdd\u5b88\u6027\u306b\u5927\u304d\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001Ruby on Rail &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3128,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,44],"tags":[],"class_list":{"0":"post-43","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-ruby","8":"category-ruby-rails"},"_links":{"self":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":10,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":3160,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions\/3160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/media\/3128"}],"wp:attachment":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}