{"id":1578,"date":"2022-02-08T17:48:39","date_gmt":"2022-02-08T08:48:39","guid":{"rendered":"https:\/\/suzutukiblog.com\/?p=1578"},"modified":"2022-03-07T18:38:03","modified_gmt":"2022-03-07T09:38:03","slug":"rails_tutorial","status":"publish","type":"post","link":"https:\/\/suzutukiblog.com\/index.php\/2022\/02\/08\/rails_tutorial\/","title":{"rendered":"Rails Tutorial\u307e\u3068\u3081(\u81ea\u5206\u306eRailsTutorial\u30c1\u30fc\u30c8\u30b7\u30fc\u30c8)"},"content":{"rendered":"<div class=\"allWrapper\">\n<div class=\"st-HeaderContainer\">\n<div id=\"GlobalHeader-react-component-abb7be3a-3183-4058-b345-956190a6db85\">\n<div class=\"st-Header\">\n<h3 class=\"st-Header_container\"><span style=\"font-size: 1.5rem;\">\u6a5f\u80fd\u8981\u4ef6<\/span><\/h3>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"p-items_main\">\n<div class=\"p-items_article\">\n<section class=\"it-MdContent\">\n<div id=\"personal-public-article-body\">\n<h3>\u30ed\u30b0\u30a4\u30f3\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8abf\u3079\u305f\u3044\u3068\u304d<\/h3>\n<p>\u30ed\u30b0\u30a4\u30f3\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u6a5f\u80fd(\u81ea\u524d\u3067)<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/basic_login?version=5.1#cha-basic_login\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/basic_login?version=5.1#cha-basic_login<\/a><\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u6a5f\u80fd(\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea- devise)<br \/>\n<a id=\"reference-431149a6cf7f8f1d35c1\" class=\"autolink\" href=\"https:\/\/qiita.com\/cigalecigales\/items\/f4274088f20832252374\">https:\/\/qiita.com\/cigalecigales\/items\/f4274088f20832252374<\/a><\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u3092\u9589\u3058\u3066\u3082\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3092\u7dad\u6301\u3057\u305f\u3044\uff01 &#8211; Remember me\u6a5f\u80fd<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/advanced_login?version=5.1#sec-remember_me\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/advanced_login?version=5.1#sec-remember_me<\/a><\/p>\n<p>\u65b0\u898f\u767b\u9332\u3092\u3057\u305f\u3089\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u9001\u3089\u308c\u308b\u3084\u3064<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/account_activation?version=5.1#cha-account_activation\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/account_activation?version=5.1#cha-account_activation<\/a><\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5fd8\u308c\u305f\u6642\u306b\u518d\u8a2d\u5b9a\u3067\u304d\u308b\u3084\u3064<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/password_reset?version=5.1#cha-password_reset\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/password_reset?version=5.1#cha-password_reset<\/a><\/p>\n<h3>\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3064\u3044\u3066\u8abf\u3079\u305f\u3044\u3068\u304d<\/h3>\n<p><!--more--><\/p>\n<p>\u6210\u529f\u3001\u5931\u6557\u3057\u307e\u3057\u305f\uff01\u3092\u77e5\u3089\u305b\u3066\u304f\u308c\u308b\u3084\u3064 \u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30c3\u30bb\u30fc\u30b8<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-signup_error_messages\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-signup_error_messages<\/a><br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/basic_login?version=5.1#sec-rendering_with_a_flash_message\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/basic_login?version=5.1#sec-rendering_with_a_flash_message<\/a><\/p>\n<h3>1\u5bfe\u591a\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u7d10\u4ed8\u3044\u305f\u6295\u7a3f\u306b\u3064\u3044\u3066\u8abf\u3079\u305f\u3044\u3068\u304d<\/h3>\n<p>\u6587\u7ae0\u6295\u7a3f\u6a5f\u80fd(\u30e6\u30fc\u30b6\u30fc\u306b\u7d10\u4ed8\u3044\u305f\u6295\u7a3f\u6a5f\u80fd(1\u5bfe\u591a))<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#cha-user_microposts\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#cha-user_microposts<\/a><\/p>\n<h3>\u591a\u5bfe\u591a\u30e2\u30c7\u30eb\u306b\u3064\u3044\u3066\u8abf\u3079\u305f\u3044\u3068\u304d<\/h3>\n<p>\u30d5\u30a9\u30ed\u30fc\u3001\u30d5\u30a9\u30ed\u30ef\u30fc\u6a5f\u80fd\u306e\u9aa8\u7d44\u307f<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-the_relationship_model\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-the_relationship_model<\/a><\/p>\n<p>\u30d5\u30a9\u30ed\u30fc\u3001\u30d5\u30a9\u30ed\u30ef\u30fc\u4e00\u89a7\u30da\u30fc\u30b8\u3092\u4f5c\u308a\u305f\u3044<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-following_and_followers_pages\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-following_and_followers_pages<\/a><\/p>\n<p>\u30d5\u30a9\u30ed\u30fc\u30dc\u30bf\u30f3\u3092\u4f5c\u308a\u305f\u3044(\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3068Ajax)<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-a_working_follow_button_the_standard_way\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-a_working_follow_button_the_standard_way<\/a><br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-a_working_follow_button_with_ajax\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-a_working_follow_button_with_ajax<\/a><\/p>\n<p>\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u6a5f\u80fd<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-the_status_feed\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-the_status_feed<\/a><\/p>\n<p>\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3001\u30d5\u30a3\u30fc\u30c9<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-a_proto_feed\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-a_proto_feed<\/a><\/p>\n<p>\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u3092\u5165\u308c\u305f\u3044 &#8211; Gravatar<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-a_gravatar_image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-a_gravatar_image<\/a><\/p>\n<p>\u7de8\u96c6\u753b\u9762\u3092\u8868\u793a\u3057\u305f\u308a\u66f4\u65b0\u3057\u305f\u308a\u524a\u9664\u3057\u305f\u308a\u3057\u305f\u3044<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/advanced_login?version=5.1#sec-remember_me\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/advanced_login?version=5.1#sec-remember_me<\/a><\/p>\n<p>\u5165\u529b\u3059\u308b\u5024\u304c\u671f\u5f85\u3057\u3066\u308b\u3082\u306e\u3068\u9055\u3063\u305f\u3089\u5143\u306b\u623b\u3057\u305f\u3044<br \/>\n\u671f\u5f85\u3057\u3066\u308b\u3082\u306e\u304b\u3069\u3046\u304b\u3092\u5224\u5225\u2192\u6b63\u898f\u8868\u73fe\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/modeling_users?version=5.1#sec-user_validations\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/modeling_users?version=5.1#sec-user_validations<\/a><\/p>\n<p>\u5143\u306b\u623b\u3059\u2192\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u6a5f\u80fd<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-unsuccessful_signups\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-unsuccessful_signups<\/a><\/p>\n<p>\u691c\u7d22\u6a5f\u80fd<br \/>\n<a id=\"reference-79e215e1075219fddfef\" class=\"autolink\" href=\"https:\/\/qiita.com\/shin1rok\/items\/779e581e9d12a92310c3\">https:\/\/qiita.com\/shin1rok\/items\/779e581e9d12a92310c3<\/a><\/p>\n<h3>\u753b\u50cf\u3092\u6295\u7a3f\u306b\u3064\u3044\u3066\u8abf\u3079\u305f\u3044\u3068\u304d<\/h3>\n<p>\u753b\u50cf\u3092\u6295\u7a3f\u3057\u305f\u3044(\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea &#8211; CarrierWave mini_magick gem\u3068 fog gems)<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-basic_image_upload\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-basic_image_upload<\/a><\/p>\n<p>\u6295\u7a3f\u3057\u305f\u753b\u50cf\u304c\u5927\u304d\u304f\u306a\u3063\u3066\u3057\u307e\u3046<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-image_validation\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-image_validation<\/a><\/p>\n<p>\u672c\u756a\u74b0\u5883\u3067\u306e\u753b\u50cf\u306e\u4fdd\u5b58\u65b9\u6cd5\u3000\u2192S3\u3092\u4f7f\u3046\u3002<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-image_upload_in_production\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-image_upload_in_production<\/a><\/p>\n<h1><span id=\"\u975e\u6a5f\u80fd\u8981\u4ef6\" class=\"fragment\"><\/span>\u975e\u6a5f\u80fd\u8981\u4ef6<\/h1>\n<h2><span id=\"model\u7cfb\" class=\"fragment\"><\/span>Model\u7cfb<\/h2>\n<p>ActiveRecord\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30ec\u30d9\u30eb\u3067\u306f\u4e00\u610f\u6027\u3092\u4fdd\u8a3c\u3057\u3066\u3044\u306a\u3044(validate\u3067\u4e00\u610f\u6027\u3092\u4fdd\u8a3c\u3057\u305f\u3068\u3057\u3066\u3082)\u2192index\u3092\u3064\u3051\u308c\u3070\u89e3\u6c7a<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/modeling_users?version=5.1#sec-uniqueness_validation\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/modeling_users?version=5.1#sec-uniqueness_validation<\/a><\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3059\u308b\u524d\u306b\u4fdd\u5b58\u3059\u308b\u5185\u5bb9\u3092\u691c\u8a3c\u3057\u305f\u3044 &#8211; \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/modeling_users?version=5.1#sec-user_validations\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/modeling_users?version=5.1#sec-user_validations<\/a><\/p>\n<h2><span id=\"view\u7cfb\" class=\"fragment\"><\/span>View\u7cfb<\/h2>\n<p>\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3(\u30da\u30fc\u30b8\u5206\u5272)<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-pagination\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-pagination<\/a><\/p>\n<p>\u7de8\u96c6\u30d5\u30a9\u30fc\u30e0<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-edit_form\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-edit_form<\/a><\/p>\n<p>\u4e00\u89a7\u8868\u793a\u3055\u305b\u305f\u3044<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-showing_all_users\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-showing_all_users<\/a><\/p>\n<p>\u90e8\u5206\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u547c\u3073\u51fa\u3057\u305f\u3044 \u2192 render \u2018\u30d5\u30a1\u30a4\u30eb\u540d\u2019<br \/>\n<a class=\"autolink\" href=\"https:\/\/pikawaka.com\/rails\/render\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/pikawaka.com\/rails\/render<\/a><\/p>\n<h2><span id=\"controller\u7cfb\" class=\"fragment\"><\/span>Controller\u7cfb<\/h2>\n<p>\u30d5\u30a9\u30fc\u30e0\u306e\u5165\u529b\u306b\u5931\u6557\u3057\u305f\u6642\u306e\u5b9f\u88c5<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-unsuccessful_edits\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-unsuccessful_edits<\/a><\/p>\n<p>Rails\u306eredirect_to\u306b\u304a\u3051\u308bpath\u3068url\u306e\u4f7f\u3044\u5206\u3051(\u540c\u3058\u3088\u3046\u306a\u3082\u306e)<br \/>\n<a class=\"autolink\" href=\"https:\/\/teratail.com\/questions\/204077\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/teratail.com\/questions\/204077<\/a><\/p>\n<p>\u90e8\u5206\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u547c\u3073\u51fa\u3057\u305f\u3044 \u2192 render \u2018\u30d5\u30a1\u30a4\u30eb\u540d\u2019<br \/>\n<a class=\"autolink\" href=\"https:\/\/pikawaka.com\/rails\/render\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/pikawaka.com\/rails\/render<\/a><\/p>\n<p>Destroy\u30a2\u30af\u30b7\u30e7\u30f3\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-the_destroy_action\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-the_destroy_action<\/a><\/p>\n<p>new\u3068build\u306e\u9055\u3044<br \/>\nnew\u30e1\u30bd\u30c3\u30c9\u3068build\u30e1\u30bd\u30c3\u30c9\u306f\u3068\u3082\u306b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3059\u308b\u304c\u3001<br \/>\nbuild\u306f\u81ea\u52d5\u7684\u306buser_id\u3092\u30bb\u30c3\u30c8\u3057\u3066\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n<a id=\"reference-803109f87fa78ca3010a\" class=\"autolink\" href=\"https:\/\/qiita.com\/Kaisyou\/items\/8876f39e12631f4e5154\">https:\/\/qiita.com\/Kaisyou\/items\/8876f39e12631f4e5154<\/a><\/p>\n<p>CRUD(Create)<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-signup_form\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-signup_form<\/a><\/p>\n<p>CRUD(Read)<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-showing_all_users\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-showing_all_users<\/a><\/p>\n<p>CRUD(Destroy)<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-the_destroy_action\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-the_destroy_action<\/a><\/p>\n<h2><span id=\"url\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7cfb\" class=\"fragment\"><\/span>URL,\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u7cfb<\/h2>\n<p>localhost3000\/\u306e\u72b6\u614b\u3067\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u305f\u3044(3) \u2192root<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/static_pages?version=5.1#sec-setting_the_root_route\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/static_pages?version=5.1#sec-setting_the_root_route<\/a><\/p>\n<p>RESTful\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#table-RESTful_users\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#table-RESTful_users<\/a><br \/>\n<a id=\"reference-c19b85893f0304fde99c\" class=\"autolink\" href=\"https:\/\/qiita.com\/NagaokaKenichi\/items\/0647c30ef596cedf4bf2\">https:\/\/qiita.com\/NagaokaKenichi\/items\/0647c30ef596cedf4bf2<\/a><\/p>\n<p>resource\u3092\u4f7f\u3063\u305fRESTful\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306bRESTful\u4ee5\u5916\u306e\u65b0\u3057\u3044\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u305f\u3044\u3002<br \/>\n<a id=\"reference-947e174ddbb2412caa39\" class=\"autolink\" href=\"https:\/\/qiita.com\/ebihara99999\/items\/37afb1486442e7c16a8a\">https:\/\/qiita.com\/ebihara99999\/items\/37afb1486442e7c16a8a<\/a><br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-stats_and_a_follow_form\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-stats_and_a_follow_form<\/a><\/p>\n<h2><span id=\"dbactiverecord\u7cfb\" class=\"fragment\"><\/span>DB,ActiveRecord\u7cfb<\/h2>\n<p>\u30ab\u30e9\u30e0\u540d\u3092\u5909\u66f4\u3057\u305f\u3044<br \/>\n<a id=\"reference-56f9869de44aae8020d7\" class=\"autolink\" href=\"https:\/\/qiita.com\/libertyu\/items\/93acd8733e34b1d0a63c\">https:\/\/qiita.com\/libertyu\/items\/93acd8733e34b1d0a63c<\/a><\/p>\n<p>\u30b7\u30fc\u30c9\u3092\u4f5c\u308b(\u30b5\u30f3\u30d7\u30eb\u30e6\u30fc\u30b6\u30fc\u3092DB\u306b\u305f\u304f\u3055\u3093\u4f5c\u308a\u305f\u3044)<br \/>\n<a id=\"reference-81006053424599d6c3af\" class=\"autolink\" href=\"https:\/\/qiita.com\/takehanKosuke\/items\/79a66751fe95010ea5ee\">https:\/\/qiita.com\/takehanKosuke\/items\/79a66751fe95010ea5ee<\/a><br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-sample_users\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-sample_users<\/a><\/p>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b<br \/>\n<a id=\"reference-ce37394273a3eda1f0d3\" class=\"autolink\" href=\"https:\/\/qiita.com\/tanaka-t\/items\/cd6aa0526725e88f5024\">https:\/\/qiita.com\/tanaka-t\/items\/cd6aa0526725e88f5024<\/a><\/p>\n<p>ActiveRecord\u306eSQL\u306e\u53ef\u8aad\u6027\u3092\u3042\u3052\u305f\u3044 \u2192 Scope<br \/>\n<a id=\"reference-7c5329a5fc5df30c3909\" class=\"autolink\" href=\"https:\/\/qiita.com\/ngron\/items\/14a39ce62c9d30bf3ac3\">https:\/\/qiita.com\/ngron\/items\/14a39ce62c9d30bf3ac3<\/a><\/p>\n<p>\u8907\u6570\u30c6\u30fc\u30d6\u30eb\u306b\u307e\u305f\u304c\u308b\u691c\u7d22\u3092\u3057\u305f\u3044<br \/>\n<a id=\"reference-685f4a3b78cc02177b9e\" class=\"autolink\" href=\"https:\/\/qiita.com\/leon-joel\/items\/f26556c9e56833983856\">https:\/\/qiita.com\/leon-joel\/items\/f26556c9e56833983856<\/a><br \/>\n<a id=\"reference-aa1a961588826d0d8a4c\" class=\"autolink\" href=\"https:\/\/qiita.com\/makitokezuka\/items\/f13b2e7bad77b5594911\">https:\/\/qiita.com\/makitokezuka\/items\/f13b2e7bad77b5594911<\/a><\/p>\n<p>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9<br \/>\n\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u30c6\u30fc\u30d6\u30eb\u3068\u306f\u5225\u306b\u691c\u7d22\u7528\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u72b6\u614b\u3067\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3060\u3051\u304c\u30c6\u30fc\u30d6\u30eb\u3068\u306f\u5225\u306b\u4fdd\u5b58\u3055\u308c\u308b\u3002\u691c\u7d22\u7528\u306b\u4e26\u3073\u66ff\u3048\u3092\u3057\u3066\u3044\u308b\u4e0a\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8cbc\u3063\u305f\u30ab\u30e9\u30e0\u3060\u3051\u3092\u691c\u7d22\u3067\u304d\u308b\u306e\u3067\u9ad8\u901f\u691c\u7d22\u304c\u53ef\u80fd\u3002\u30c7\u30e1\u30ea\u30c3\u30c8\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u3068\u306f\u5225\u306b\u691c\u7d22\u7528\u306e\u30c6\u30fc\u30d6\u30eb\u304c\u4fdd\u5b58\u3055\u308c\u308b\u95a2\u4fc2\u4e0a\u30c7\u30fc\u30bf\u306e\u8ffd\u52a0\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u3053\u3068\u3002\u306a\u305c\u306a\u3089\u3001\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b\u3068\u304d\u306b2\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u8ffd\u52a0\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u304b\u3089\u3002<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-a_micropost_model\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-a_micropost_model<\/a><br \/>\n<a class=\"autolink\" href=\"https:\/\/www.dbonline.jp\/sqlite\/index\/index1.html\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/www.dbonline.jp\/sqlite\/index\/index1.html<\/a><br \/>\n<a class=\"autolink\" href=\"https:\/\/ja.wikipedia.org\/wiki\/%E7%B4%A2%E5%BC%95_%28%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%29\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/ja.wikipedia.org\/wiki\/%E7%B4%A2%E5%BC%95_%28%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%29<\/a><\/p>\n<p>\u89aa\u3092\u524a\u9664\u3057\u305f\u6642\u306b\u5b50\u3082\u524a\u9664\u3067\u304d\u308b\u3053\u3068\u3092\u3057\u305f\u3044 dependent: :destroy<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-dependent_destroy\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-dependent_destroy<\/a><\/p>\n<p>\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u6642\u306e\u5225\u30c6\u30fc\u30d6\u30eb\u306e\u30c7\u30fc\u30bf\u306e\u547c\u3073\u51fa\u3057\u65b9<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-destroying_microposts\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-destroying_microposts<\/a><\/p>\n<p>\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u540c\u3058\u30e6\u30fc\u30b6\u30fc\u30922\u56de\u4ee5\u4e0a\u30d5\u30a9\u30ed\u30fc\u3059\u308b\u3053\u3068\u3092\u9632\u3050\u3053\u3068- \u8907\u5408\u30ad\u30fc\u30a4\u30f3\u30c7\u30c3\u30af\u30b9<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-a_problem_with_the_data_model\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/following_users?version=5.1#sec-a_problem_with_the_data_model<\/a><\/p>\n<h2><span id=\"\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7cfb\" class=\"fragment\"><\/span>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7cfb<\/h2>\n<p>\u30b9\u30c8\u30ed\u30f3\u30b0\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc(Strong parameters)<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-revisiting_strong_parameters\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-revisiting_strong_parameters<\/a><\/p>\n<p>\u30de\u30b9\u30a2\u30b5\u30a4\u30f3\u30e1\u30f3\u30c8<br \/>\n\u2192\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u305d\u306e\u307e\u307e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068(\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7684\u306b\u5f31\u3044)<br \/>\n<a class=\"autolink\" href=\"https:\/\/thinkit.co.jp\/story\/2015\/09\/03\/6389\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/thinkit.co.jp\/story\/2015\/09\/03\/6389<\/a><\/p>\n<p>\u4f5c\u696d\u3092\u5143\u306b\u623b\u3057\u305f\u3044\uff01<br \/>\nrails destroy controller ~<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/static_pages?version=5.1#sec-generated_static_pages\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/static_pages?version=5.1#sec-generated_static_pages<\/a><\/p>\n<p>\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6709\u52b9\u5316<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/account_activation?version=5.1#cha-account_activation\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/account_activation?version=5.1#cha-account_activation<\/a><\/p>\n<p>SSL<br \/>\n\u30ed\u30fc\u30ab\u30eb\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u6d41\u308c\u308b\u524d\u306b\u3001\u5927\u4e8b\u306a\u60c5\u5831\u3092\u6697\u53f7\u5316\u3059\u308b\u6280\u8853<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-ssl_in_production\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-ssl_in_production<\/a><\/p>\n<p>CSRF\u5bfe\u7b56[Controller]<br \/>\nprotect_from_forgery with: :exception<br \/>\n<a id=\"reference-8864054d23d2ea0b0797\" class=\"autolink\" href=\"https:\/\/qiita.com\/tanaka7014\/items\/5b4e2204dc6bec83c90e\">https:\/\/qiita.com\/tanaka7014\/items\/5b4e2204dc6bec83c90e<\/a><\/p>\n<p>\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc<br \/>\n<a class=\"autolink\" href=\"https:\/\/wa3.i-3-i.info\/word118.html\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/wa3.i-3-i.info\/word118.html<\/a><\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30cf\u30c3\u30b7\u30e5\u5316,\u6697\u53f7\u5316\u3057\u3066\u4fdd\u5b58\u3057\u305f\u3044<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/modeling_users?version=5.1#sec-adding_a_secure_password\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/modeling_users?version=5.1#sec-adding_a_secure_password<\/a><\/p>\n<h2><span id=\"\u30a8\u30e9\u30fc\u7cfb\" class=\"fragment\"><\/span>\u30a8\u30e9\u30fc\u7cfb<\/h2>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30d6\u30e9\u30a6\u30b6\u753b\u9762\u306b\u8868\u793a\u3057\u305f\u3044<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/basic_login?version=5.1#sec-rendering_with_a_flash_message\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/basic_login?version=5.1#sec-rendering_with_a_flash_message<\/a><br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-signup_error_messages\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-signup_error_messages<\/a><br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-the_flash\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/sign_up?version=5.1#sec-the_flash<\/a><\/p>\n<h2><span id=\"\u30bf\u30a4\u30df\u30f3\u30b0\u7cfb\" class=\"fragment\"><\/span>\u30bf\u30a4\u30df\u30f3\u30b0\u7cfb<\/h2>\n<p>Email\u30a2\u30c9\u30ec\u30b9\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3059\u308b\u969b\u306b\u4e8b\u524d\u306b\u5c0f\u6587\u5b57\u306b\u3057\u3066\u304a\u304d\u305f\u3044 &#8211; \u30b3\u30fc\u30eb\u30d0\u30c3\u30af<br \/>\n<a id=\"reference-1f1bd67d3f795ad0f051\" class=\"autolink\" href=\"https:\/\/qiita.com\/okamoto_ryo\/items\/458097542e826623b7ad\">https:\/\/qiita.com\/okamoto_ryo\/items\/458097542e826623b7ad<\/a><br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/account_activation?version=5.1#sec-activation_token_callback\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/account_activation?version=5.1#sec-activation_token_callback<\/a><br \/>\n\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u751f\u6210(create)\u3001\u66f4\u65b0(update)\u3001\u7834\u58ca(delete)\u3055\u308c\u308b\u6642\u3084\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u6642\u306e\u524d\u5f8c\u306b\u5171\u901a\u306e\u51e6\u7406\u3092\u8ffd\u52a0\u3059\u308b\u4ed5\u7d44\u307f\u306e\u3053\u3068\u3092\u6307\u3059<br \/>\nbefore_save { self.email = email.downcase }<br \/>\n\u30d6\u30ed\u30c3\u30af\u3092\u6e21\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059<br \/>\nbefore_create :create_activation_digest<br \/>\n\u4e0a\u306e\u30b3\u30fc\u30c9\u306f\u30e1\u30bd\u30c3\u30c9\u53c2\u7167\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u3067\u3001\u3053\u3046\u3059\u308b\u3068Rails\u306fcreate_activation_digest\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u63a2\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u524d\u306b\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059<\/p>\n<h2><span id=\"\u8a8d\u53ef\u8a8d\u8a3c\u6a29\u9650\u95a2\u9023\" class=\"fragment\"><\/span>\u8a8d\u53ef\u3001\u8a8d\u8a3c\u3001\u6a29\u9650\u95a2\u9023<\/h2>\n<p>\u30ed\u30b0\u30a4\u30f3\u6e08\u307f\u306e\u30e6\u30fc\u30b6\u30fc\u3060\u3051\u306b\u30da\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u305f\u3044<br \/>\nController<br \/>\nbefore_action :logged_in_user, only: [:edit, :update]<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-authorization\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-authorization<\/a><\/p>\n<p>\u81ea\u5206\u3060\u3051\u3092\u7de8\u96c6\u3057\u305f\u3044<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-requiring_the_right_user\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-requiring_the_right_user<\/a><\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u5f8c\u3001\u30ed\u30b0\u30a4\u30f3\u76f4\u524d\u306b\u95b2\u89a7\u3057\u3066\u3044\u305f\u30da\u30fc\u30b8\u30d8\u3068\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u305b\u308b\u6a5f\u80fd<br \/>\n\u2192\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u5c02\u7528\u306e\u30da\u30fc\u30b8\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u2192\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u2192\u3055\u3063\u304d\u898b\u3066\u305f\u30ed\u30b0\u30a4\u30f3\u5c02\u7528\u306e\u30da\u30fc\u30b8\u306b\u884c\u3051\u308b<br \/>\n\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u30d5\u30a9\u30ef\u30fc\u30c7\u30a3\u30f3\u30b0 request.url<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-friendly_forwarding\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-friendly_forwarding<\/a><br \/>\n\u4e00\u3064\u524d\u306eURL\u3092\u8fd4\u3057\u305f\u3044(\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u305f\u3044) request.referrer<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-destroying_microposts\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-destroying_microposts<\/a><br \/>\n\u8a8d\u53ef\u3068\u8a8d\u8a3c\u306e\u9055\u3044<br \/>\n<a id=\"reference-52e43af630289eaa811c\" class=\"autolink\" href=\"https:\/\/qiita.com\/kaysquare1231\/items\/c4e4736f2a924b03777b\">https:\/\/qiita.com\/kaysquare1231\/items\/c4e4736f2a924b03777b<\/a><\/p>\n<h2><span id=\"dry\u306b\u66f8\u304d\u305f\u3044\u53ef\u8aad\u6027\u4fdd\u5b88\u6027\" class=\"fragment\"><\/span>DRY\u306b\u66f8\u304d\u305f\u3044(\u53ef\u8aad\u6027\u3001\u4fdd\u5b88\u6027)<\/h2>\n<p>\u4f3c\u305f\u3088\u3046\u306a\u30b3\u30fc\u30c9\u30921\u3064\u306b\u307e\u3068\u3081\u305f\u3044(\u30d1\u30fc\u30b7\u30e3\u30eb)<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/filling_in_the_layout?version=5.1#sec-partials\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/filling_in_the_layout?version=5.1#sec-partials<\/a><\/p>\n<p>DRY\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u305f\u3044\u304c\u3001\u4e00\u90e8\u5206\u304c\u9055\u3046\u5834\u5408<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-edit_form\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-edit_form<\/a><\/p>\n<p>\u30bf\u30a4\u30c8\u30eb\u306e\u53ef\u5909\u8981\u7d20\u3092DRY\u3059\u308b<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/static_pages?version=5.1#sec-layouts_and_embedded_ruby\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/static_pages?version=5.1#sec-layouts_and_embedded_ruby<\/a><br \/>\n<a id=\"reference-fab2b1e9bf7c4eb7e8aa\" class=\"autolink\" href=\"https:\/\/qiita.com\/shumpeism\/items\/a0ad5930fa3bc0d24c70\">https:\/\/qiita.com\/shumpeism\/items\/a0ad5930fa3bc0d24c70<\/a><\/p>\n<p>private\u30e1\u30bd\u30c3\u30c9\u3092controller\u306b\u5b9a\u7fa9\u3057\u305f\u304c\u3001\u3068\u3066\u3082\u6c4e\u7528\u6027\u304c\u3042\u308b\u306e\u3067\u7570\u306a\u308bController\u3067\u3082\u5b9a\u7fa9\u3057\u305f\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u305f\u3044(\u7d99\u627f\u2192application_controller.rb)<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-micropost_access_control\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/user_microposts?version=5.1#sec-micropost_access_control<\/a><\/p>\n<p>\u8a18\u6cd5\u4e00\u89a7<br \/>\n<a id=\"reference-82ebceaab24a28ddb28c\" class=\"autolink\" href=\"https:\/\/qiita.com\/gakkie\/items\/3afcd505c786364aa5fa\">https:\/\/qiita.com\/gakkie\/items\/3afcd505c786364aa5fa<\/a><br \/>\n<a class=\"autolink\" href=\"https:\/\/blog.mothule.com\/ruby\/ruby-percent-syntax\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/blog.mothule.com\/ruby\/ruby-percent-syntax<\/a><\/p>\n<p>[Ruby]\u8a18\u6cd5\u4e00\u89a7<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/rails_flavored_ruby?version=5.1#cha-rails_flavored_ruby\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/rails_flavored_ruby?version=5.1#cha-rails_flavored_ruby<\/a><\/p>\n<p>\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u3068\u30aa\u30d7\u30b7\u30e7\u30f3\u5f15\u6570\u306e\u9055\u3044<br \/>\n<a class=\"autolink\" href=\"https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-users_index\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https:\/\/railstutorial.jp\/chapters\/updating_and_deleting_users?version=5.1#sec-users_index<\/a><\/p>\n<\/div>\n<\/section>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6a5f\u80fd\u8981\u4ef6 \u30ed\u30b0\u30a4\u30f3\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8abf\u3079\u305f\u3044\u3068\u304d \u30ed\u30b0\u30a4\u30f3\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u6a5f\u80fd(\u81ea\u524d\u3067) https:\/\/railstutorial.jp\/chapters\/basic_login?version=5.1#cha-ba [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[25,27,13],"tags":[],"class_list":["post-1578","post","type-post","status-publish","format-standard","hentry","category-cheatsheet","category-programming-note","category-rails"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/1578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=1578"}],"version-history":[{"count":14,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/1578\/revisions"}],"predecessor-version":[{"id":3499,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/1578\/revisions\/3499"}],"wp:attachment":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=1578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=1578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=1578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}