{"id":33677,"date":"2021-08-01T08:08:09","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=33677"},"modified":"2024-05-06T11:45:04","modified_gmt":"2024-05-06T02:45:04","slug":"%e3%80%90rails%e5%85%a5%e9%96%80%e3%80%91session%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%be%e3%81%a8%e3%82%81","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/33677","title":{"rendered":"\u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f! \u30d5\u30ea\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u9577\u702c\u3067\u3059\u3002<\/p>\n<p>\u307f\u306a\u3055\u3093\u306f<span style=\"color: #339966;\"><strong>\u30bb\u30c3\u30b7\u30e7\u30f3<\/strong><\/span>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304b\uff1f<\/p>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u306f\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u306b\u306f\u5fc5\u9808\u306e\u3082\u306e\u3067\u3001<span style=\"color: #0000ff;\"><strong>\u30ed\u30b0\u30a4\u30f3\u306b\u6210\u529f\u3057\u305f\u5f8c\u306b\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3092\u7dad\u6301<\/strong><\/span>\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u30fb \u30bb\u30c3\u30b7\u30e7\u30f3\u3068\u306f<\/strong><\/span><\/p>\n<p>\u3067\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u5f79\u5272\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u305f\u5f8c<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u30fb\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046<\/strong><\/span><\/p>\n<p>\u3067\u5b9f\u969b\u306b<span style=\"color: #0000ff;\"><strong>Rails5\u3067\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9<\/strong><\/span>\u3092\u308f\u304b\u308a\u3084\u3059\u3044\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3068\u3068\u3082\u306b\u5b66\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30bb\u30c3\u30b7\u30e7\u30f3\u3068\u306f<\/h2>\n<p><span style=\"color: #ff0000; background-color: #ffff99;\"><strong>\u30bb\u30c3\u30b7\u30e7\u30f3\u306f\u4e3b\u306b\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306b\u4f7f\u7528\u3055\u308c\u308b\u3082\u306e\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3092\u6301\u7d9a\u3055\u305b\u308b\u305f\u3081\u306b\u3042\u308a\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u304a\u304b\u3052\u3067\u3001\u4e00\u5ea6\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u5f8c\u306f\u767b\u9332\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u306e\u6271\u3044\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u9006\u306b\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u3068\u3044\u3046\u4ed5\u7d44\u307f\u304c\u306a\u3051\u308c\u3070<span style=\"color: #ff0000;\"><strong>\u30da\u30fc\u30b8\u3092\u79fb\u52d5\u3059\u308b\u305f\u3073\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u76f4\u3055\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044<\/strong><\/span>\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u3068\u3066\u3082\u4e0d\u4fbf\u3067\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306e\u5b9f\u88c5\u306b\u306f\u5fc5\u8981\u306a\u306e\u3067Rails\u3067\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u3042\u3089\u304b\u3058\u3081\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u4fbf\u5229\u306a\u30e1\u30bd\u30c3\u30c9<\/strong><\/span>\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u3001\u7c21\u5358\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u60c5\u5831\u306fRails\u6a19\u6e96\u3067\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u5074\u306e\u30af\u30c3\u30ad\u30fc\u306b\u4fdd\u5b58\u3055\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u3082\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3001\u5b9f\u969b\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u4ed5\u7d44\u307f\u3092\u4f7f\u3063\u3066<span style=\"color: #0000ff;\"><strong>\u7c21\u5358\u306a\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u5b9f\u88c5<\/strong><\/span>\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u5b9f\u884c\u74b0\u5883\u306frails5.1.4\u3067\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u8aac\u660e\u3057\u307e\u3059\u306e\u3067\u3001<span style=\"color: #ff0000;\"><strong>\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3059\u308b\u753b\u9762\u306f\u4f5c\u6210\u3057\u307e\u305b\u3093\u3002<\/strong><\/span><br \/>\n\u3042\u3089\u304b\u3058\u3081\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3059\u308b\u305f\u3081\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u30e6\u30fc\u30b6\u30fc\u30e2\u30c7\u30eb\u306b\u306f\u3001\u540d\u524d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u767b\u9332\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u59cb\u3081\u306b\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6697\u53f7\u5316\u3059\u308b\u305f\u3081\u306egem\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>Gemfile\u306b\u4ee5\u4e0b\u306e\u884c\u3092\u30b3\u30e1\u30f3\u30c8\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \"># gem 'bcrypt', '~&gt; 3.1.7'<\/pre>\n<p>\u2193<\/p>\n<pre class=\"lang:ruby decode:true \">gem 'bcrypt', '~&gt; 3.1.7'<\/pre>\n<p><span style=\"color: #339966;\"><strong>bcrypt<\/strong><\/span>\u3068\u3044\u3046gem\u3092\u4f7f\u3048\u3070\u3001<span style=\"color: #0000ff;\"><strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4fdd\u5b58\u3059\u308b\u969b\u306b\u3001\u6697\u53f7\u5316<\/strong><\/span>\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30e1\u30f3\u30c8\u30a4\u30f3\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067<\/p>\n<pre class=\"lang:ruby decode:true \">bundle install<\/pre>\n<p>\u3068\u5165\u529b\u3057\u3066\u3001gem\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b8c\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u6b21\u306bgenerate\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3001User\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">rails generate model User name:string password_digest:string<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"lang:ruby decode:true \">Running via Spring preloader in process 95595\r\n      invoke  active_record\r\n      create    db\/migrate\/20170919084828_create_users.rb\r\n      create    app\/models\/user.rb<\/pre>\n<p>password_digest\u3068\u3044\u3046\u30ab\u30e9\u30e0\u306b\u306f\u6697\u53f7\u5316\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u5165\u308a\u307e\u3059\u3002<br \/>\npassword_digest\u306fbcrypt\u306e\u4ed5\u69d8\u3067\u3059\u304c\u3001\u3053\u306e\u30ab\u30e9\u30e0\u540d\u306b\u3059\u308b\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6697\u53f7\u5316\u3055\u308c\u3066\u4fdd\u5b58\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>migration\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u53cd\u6620\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">rails db:migrate<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"lang:ruby decode:true \">== 20170919084828 CreateUsers: migrating ======================================\r\n-- create_table(:users)\r\n   -&gt; 0.0009s\r\n== 20170919084828 CreateUsers: migrated (0.0009s) =============================<\/pre>\n<p>\u3053\u308c\u3067\u30e6\u30fc\u30b6\u30fc\u30e2\u30c7\u30eb\u306e\u4f5c\u6210\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u4f5c\u6210\u3057\u305fapp\/models\/user.rb\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u306e<span style=\"color: #0000ff;\"><strong>\u6697\u53f7\u5316\u3092\u6709\u52b9\u306b\u3059\u308b<\/strong><\/span>\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u52a0\u3048\u307e\u3059\u3002<\/p>\n<p>[app\/models\/user.rb]<\/p>\n<pre class=\"lang:ruby decode:true \">has_secure_password<\/pre>\n<p>\u6b21\u306b\u3001\u5b9f\u969b\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u767b\u9332\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u4f7f\u3063\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>rails c\u3067\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u958b\u3044\u305f\u5f8c\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">User.create(name:\"samurai\",password: \"test\",password_confirmation: \"test\")<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"lang:ruby decode:true \">(0.1ms)  begin transaction\r\n  SQL (0.9ms)  INSERT INTO \"users\" (\"name\", \"password_digest\", \"created_at\", \"updated_at\") VALUES (?, ?, ?, ?)  [[\"name\", \"samurai\"], [\"password_digest\", \"$2a$10$tef8qdFI9B9DeoyrJ\/lwiOq5H0ci3mRM37S0xYxL8.9xnUrjPQ\/TS\"], [\"created_at\", \"2017-09-19 09:06:22.436845\"], [\"updated_at\", \"2017-09-19 09:06:22.436845\"]]\r\n   (0.9ms)  commit transaction\r\n+----+---------+--------------------------------------------------------------+-------------------------+-------------------------+\r\n| id | name    | password_digest                                              | created_at              | updated_at              |\r\n+----+---------+--------------------------------------------------------------+-------------------------+-------------------------+\r\n| 1  | samurai | $2a$10$tef8qdFI9B9DeoyrJ\/lwiOq5H0ci3mRM37S0xYxL8.9xnUrjPQ\/TS | 2017-09-19 09:06:22 UTC | 2017-09-19 09:06:22 UTC |\r\n+----+---------+--------------------------------------------------------------+-------------------------+-------------------------+\r\n1 row in set<\/pre>\n<p>\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u306f\u8868\u5f62\u5f0f\u3067\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306bHirb\u3068\u3044\u3046gem\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u307e\u3060\u3001\u8a2d\u5b9a\u3057\u305f\u3053\u3068\u306e\u306a\u3044\u65b9\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/27497\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-18-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Rails\u5165\u9580\u3011\u521d\u5fc3\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d3\u3064\u306egem<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>\u305d\u308c\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u3082\u767b\u9332\u3067\u304d\u305f\u306e\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>generate\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3001\u4e00\u6c17\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30c8\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">rails generate controller sessions index<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<pre class=\"lang:ruby decode:true \">Running via Spring preloader in process 96983\r\n      create  app\/controllers\/sessions_controller.rb\r\n       route  get 'sessions\/index'\r\n      invoke  erb\r\n      create    app\/views\/sessions\r\n      create    app\/views\/sessions\/index.html.erb\r\n      invoke  helper\r\n      create    app\/helpers\/sessions_helper.rb\r\n      invoke  assets\r\n      invoke    coffee\r\n      create      app\/assets\/javascripts\/sessions.coffee\r\n      invoke    scss\r\n      create      app\/assets\/stylesheets\/sessions.scss<\/pre>\n<p>\u3067\u306f\u3001\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u306f\u63c3\u3063\u305f\u306e\u3067\u3001\u307e\u305a\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u304b\u3089\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>app\/controllers\/sessions_controller.rb\u3092\u958b\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u3092\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">class SessionsController &lt; ApplicationController\r\n  def index\r\n    if session[:user_name]\r\n      @notice = \"#{session[:user_name]}\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u307e\u3059\u3002\"\r\n    end\r\n\r\n    if params.key?(:name) || params.key?(:password)\r\n      user = User.find_by_name(params[:name])\r\n      if user &amp;&amp; user.authenticate(params[:password])\r\n        session[:user_name] = params[:name]\r\n      else\r\n        session[:user_name] = nil\r\n      end\r\n    end\r\n  end\r\nend<\/pre>\n<p>\u4f55\u304c\u66f8\u3044\u3066\u3042\u308b\u304b\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u3001\u30b3\u30fc\u30c9\u306e\u89e3\u8aac\u3092\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001<\/p>\n<pre class=\"lang:ruby decode:true \"> if params.key?(:name) || params.key?(:password)\r\n      user = User.find_by_name(params[:name])\r\n      if user &amp;&amp; user.authenticate(params[:password])\r\n        session[:user_name] = params[:name]\r\n      else\r\n        session[:user_name] = nil\r\n      end\r\n    end<\/pre>\n<p>\u306e\u90e8\u5206\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u5f8c\u306b\u3001<span style=\"color: #0000ff;\"><strong>\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u60c5\u5831\u304c\u4fdd\u5b58\u3055\u308c\u308b\u304b<\/strong><\/span>\u3092\u5224\u65ad\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \"> user = User.find_by_name(params[:name])<\/pre>\n<p>params[:name]\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30dd\u30b9\u30c8\u3057\u305f\u5024\u3092\u53d6\u308a\u51fa\u3057\u3001\u305d\u306e\u5f8c<span style=\"color: #339966;\"><strong>find_by_name<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u3001<span style=\"color: #0000ff;\"><strong>\u5165\u529b\u3057\u305fname\u3068\u30ab\u30e9\u30e0\u306b\u4fdd\u5b58\u3055\u308c\u305fname\u304c\u4e00\u81f4<\/strong><\/span>\u3057\u305f\u5834\u5408\u306b\u30e6\u30fc\u30b6\u30fc\u306b\u4ee3\u5165\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30ec\u30b3\u30fc\u30c9\u306f\u767b\u9332\u3057\u305f1\u3064\u3057\u304b\u306a\u3044\u306e\u3067\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u51fa\u529b\u3055\u308c\u305f\u3082\u306e\u304c\u4ee3\u5165\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001<\/p>\n<pre class=\"lang:ruby decode:true \">   if user &amp;&amp; user.authenticate(params[:password])<\/pre>\n<p>\u3067\u306f&amp;&amp;\u3092\u4f7f\u3063\u3066\u3001\u6761\u4ef6\u30922\u3064\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nuser\u3067\u3001user\u306e\u4e2d\u8eab\u304c\u3042\u308b\u306e\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u3001<span style=\"color: #339966;\"><strong>user.authenticate<\/strong><\/span>\u3067\u306f\u4eca\u56deuser\u306b\u4ee3\u5165\u3055\u308c\u305f\u30ec\u30b3\u30fc\u30c9\u306e<span style=\"color: #0000ff;\"><strong>\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u30e6\u30fc\u30b6\u30fc\u304c\u30dd\u30b9\u30c8\u3057\u305f\u5024\u3068\u4e00\u81f4<\/strong><\/span>\u3057\u3066\u3044\u308b\u306e\u304b\u5224\u65ad\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3082\u3001<span style=\"color: #ff0000;\"><strong>\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e00\u81f4\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3089<\/strong><\/span>\u3001false\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u767b\u9332\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3068\u4e00\u81f4\u3057\u305f\u3089<\/p>\n<pre class=\"lang:ruby decode:true \">   session[:user_name] = params[:name]<\/pre>\n<p>\u3067\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u767b\u9332\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #339966;\"><strong>session[:\u540d\u524d] <\/strong><\/span>\u306fRails\u306b\u3042\u3089\u304b\u3058\u3081\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u540d\u524d\u3092\u3064\u3051\u3066\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u767b\u9332\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305f\u3063\u305f\u3053\u308c\u3060\u3051\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3001<span style=\"color: #0000ff;\"><strong>\u7c21\u5358\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a<\/strong><\/span>\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<span style=\"color: #339966;\"><strong>else<\/strong><\/span>\u4ee5\u964d<\/p>\n<pre class=\"lang:ruby decode:true \">session[:user_name] = nil<\/pre>\n<p>\u3067\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u7834\u68c4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3053\u3053\u307e\u3067\u8aac\u660e\u3059\u308c\u3070\u3001\u524d\u534a\u306e<\/p>\n<pre class=\"lang:ruby decode:true \">  def index\r\n    if session[:user_name]\r\n      @notice = \"#{session[:user_name]}\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u307e\u3059\u3002\"\r\n    end<\/pre>\n<p>\u306e\u90e8\u5206\u306e\u30b3\u30fc\u30c9\u3092\u8aac\u660e\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u90e8\u5206\u3067\u306f<\/p>\n<pre class=\"lang:ruby decode:true \">session[:user_name]<\/pre>\n<p>\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u5224\u65ad\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u3055\u308c\u3066\u3044\u305f\u3089\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570notice\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u6b21\u306b\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u5148\u307b\u3069\u4f5c\u6210\u3055\u308c\u305fapp\/views\/sessions\/index.html.erb\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">&lt;h1&gt;\u7c21\u6613\u30ed\u30b0\u30a4\u30f3\u753b\u9762&lt;\/h1&gt;\r\n&lt;%= form_with url: sessions_index_path %&gt;\r\n\u540d\u524d:&lt;%= text_field_tag :name %&gt;\r\n\r\n\u30d1\u30b9\u30ef\u30fc\u30c9:&lt;%= password_field_tag :password %&gt;\r\n\r\n&lt;%= submit_tag '\u30ed\u30b0\u30a4\u30f3' %&gt;\r\n\r\n&lt;%= @notice %&gt;<\/pre>\n<p><span style=\"color: #339966;\"><strong>form_with<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001sessions_index_path\u3067\u30dd\u30b9\u30c8\u5148\u3092\u6307\u5b9a\u3057\u3066\u308b\u306e\u3067\u3001\u30dd\u30b9\u30c8\u7528\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u6307\u5b9a\u3057\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067config\/routes.rb\u3092\u958b\u3044\u3066\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">Rails.application.routes.draw do\r\n  get 'sessions\/index'\r\n  post 'sessions\/index'\r\nend<\/pre>\n<p>\u3053\u308c\u3067\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3068\u30d3\u30e5\u30fc\u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u3046\u307e\u304f\u6a5f\u80fd\u3057\u3066\u3044\u308b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306brails s\u3068\u5165\u529b\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u5f93\u3063\u3066\u3001<\/p>\n<p>http:\/\/localhost:3000\/sessions\/index<\/p>\n<p>(\u88dc\u8db3http:\/\/localhost:3000\u306e\u7b87\u6240\u306f\u5404\u81ea\u306e\u958b\u767a\u74b0\u5883\u306b\u3088\u308a\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002)<\/p>\n<p>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-33680\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.16.40.png\" alt=\"Screen Shot 2560-09-19 at 21.16.40\" width=\"722\" height=\"406\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.16.40.png 722w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.16.40-150x84.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.16.40-300x169.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.16.40-640x360.png 640w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/p>\n<p>\u3053\u3053\u306b\u3055\u304d\u307b\u3069\u767b\u9332\u3057\u305fname\u3068password\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n(name\u306fsamurai\u3067\u3001password\u306ftest\u3067\u3059)<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-33681\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.17.31.png\" alt=\"Screen Shot 2560-09-19 at 21.17.31\" width=\"740\" height=\"416\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.17.31.png 740w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.17.31-150x84.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.17.31-300x169.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.17.31-640x360.png 640w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u3068\u3053\u308d\u3067\u8aac\u660e\u3057\u305f<span style=\"color: #0000ff;\"><strong>\u30b3\u30fc\u30c9\u306b\u5f93\u3063\u3066\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\u304c\u767b\u9332<\/strong><\/span>\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u304c\u6210\u529f\u3057\u3066\u3044\u305f\u3089\u3001\u30da\u30fc\u30b8\u3092\u66f4\u65b0\u3059\u308b\u3068<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-33682\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.21.34.png\" alt=\"Screen Shot 2560-09-19 at 21.21.34\" width=\"704\" height=\"430\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.21.34.png 704w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.21.34-150x92.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.21.34-300x183.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/Screen-Shot-2560-09-19-at-21.21.34-640x391.png 640w\" sizes=\"(max-width: 704px) 100vw, 704px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001@notice\u306b\u5b9a\u7fa9\u3057\u305f\u5024\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br \/>\n@notice\u306b\u306f\u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001<span style=\"color: #0000ff;\"><strong>\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u6210\u529f\u3057\u3066\u3044\u308b\u3053\u3068<\/strong><\/span>\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u306b\u306f<span style=\"color: #0000ff;\"><strong>\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u6271\u3044\u65b9\u3092\u77e5\u3063\u3066\u304a\u304f\u5fc5\u8981<\/strong><\/span>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305fRails\u6a19\u6e96\u3067\u306f\u30d6\u30e9\u30a6\u30b6\u5074\u306e\u30af\u30c3\u30ad\u30fc\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u60c5\u5831\u306f\u4fdd\u5b58\u3055\u308c\u307e\u3059\u304c\u3001<span style=\"color: #0000ff;\"><strong>\u4fdd\u5b58\u5148\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b<\/strong><\/span>\u306e\u3067\u8208\u5473\u304c\u3042\u308b\u304b\u305f\u306f\u8abf\u3079\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3082\u3057\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3053\u306e\u8a18\u4e8b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f! \u30d5\u30ea\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u9577\u702c\u3067\u3059\u3002 \u307f\u306a\u3055\u3093\u306f\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304b\uff1f \u30bb\u30c3\u30b7\u30e7\u30f3\u306f\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u306b\u306f\u5fc5\u9808\u306e\u3082\u306e\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u306b\u6210\u529f\u3057\u305f\u5f8c\u306b\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30c3 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":33678,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2352],"tags":[833,884],"class_list":["post-33677","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-study","tag-rails","tag-session"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/33677\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/33677\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"1970-01-01T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:45:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-78.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"\u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\",\"datePublished\":\"1970-01-01T00:00:00+00:00\",\"dateModified\":\"2024-05-06T02:45:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677\"},\"wordCount\":96,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image-78.jpg\",\"keywords\":[\"rails\",\"session\"],\"articleSection\":[\"Ruby\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677\",\"name\":\"\u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image-78.jpg\",\"datePublished\":\"1970-01-01T00:00:00+00:00\",\"dateModified\":\"2024-05-06T02:45:04+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image-78.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image-78.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/33677#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/33677","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/33677","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"1970-01-01T00:00:00+00:00","article_modified_time":"2024-05-06T02:45:04+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-78.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/33677#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/33677"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"\u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081","datePublished":"1970-01-01T00:00:00+00:00","dateModified":"2024-05-06T02:45:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/33677"},"wordCount":96,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/33677#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-78.jpg","keywords":["rails","session"],"articleSection":["Ruby\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/33677","url":"https:\/\/www.sejuku.net\/blog\/33677","name":"\u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/33677#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/33677#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-78.jpg","datePublished":"1970-01-01T00:00:00+00:00","dateModified":"2024-05-06T02:45:04+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/33677#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/33677"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/33677#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-78.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-78.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/33677#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010Rails\u5165\u9580\u3011session\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/33677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=33677"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/33677\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/33678"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=33677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=33677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=33677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}