{"id":955,"date":"2012-12-10T13:04:46","date_gmt":"2012-12-10T04:04:46","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=955"},"modified":"2018-11-14T16:33:58","modified_gmt":"2018-11-14T07:33:58","slug":"rails3-%e6%a1%88%e4%bb%b6%e3%82%92%e3%81%93%e3%81%aa%e3%81%97%e3%81%a6%e3%81%bf%e3%81%a6%e3%80%81%e6%80%9d%e3%81%a3%e3%81%9f%e3%81%93%e3%81%a8%e5%88%86%e3%81%8b%e3%81%a3%e3%81%9f%e3%81%93%e3%81%a8","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2012\/12\/10\/rails3-%e6%a1%88%e4%bb%b6%e3%82%92%e3%81%93%e3%81%aa%e3%81%97%e3%81%a6%e3%81%bf%e3%81%a6%e3%80%81%e6%80%9d%e3%81%a3%e3%81%9f%e3%81%93%e3%81%a8%e5%88%86%e3%81%8b%e3%81%a3%e3%81%9f%e3%81%93%e3%81%a8\/","title":{"rendered":"Rails3 \u6848\u4ef6\u3092\u3053\u306a\u3057\u3066\u307f\u3066\u3001\u601d\u3063\u305f\u3053\u3068\u3001\u5206\u304b\u3063\u305f\u3053\u3068"},"content":{"rendered":"<p>\u3053\u3093\u3061\u306b\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u3001Rails3 \u3092\u4f7f\u7528\u3057\u305f\u6848\u4ef6\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u305d\u306e\u4e2d\u3067\u601d\u3063\u305f\u3053\u3068\u3001\u5206\u304b\u3063\u305f\u3053\u3068\u3092\u307e\u3068\u3081\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b Rails3 \u3092\u4f7f\u3063\u305f\u6848\u4ef6\u306f\u521d\u3081\u3066\u3067\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u300cView \u306f\u30a8\u30e9\u30fc\u753b\u9762\u3060\u3051\u300d\u306e\u3088\u3046\u306a\u7279\u6b8a\u306a\u3082\u306e\u3060\u3063\u305f\u306e\u3067\u3001\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u306a Rails3 \u6848\u4ef6\u3068\u3044\u3046\u610f\u5473\u3067\u306f\u521d\u3081\u3066\u3067\u3057\u305f\u3002<\/p>\n<p>\u6848\u4ef6\u306e\u7279\u5fb4\u3068\u3057\u3066\u306f\u3001\u300cRails3\/Ruby1.9\u300d\u300c\u30e2\u30d0\u30a4\u30eb\u5bfe\u5fdc\u300d\u300c\u958b\u767a\u4e2d\u306b\u4ed5\u69d8\u304c\u6c7a\u307e\u308b\/\u5909\u308f\u308b\u300d\u300c\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306f\u30bf\u30a4\u30c8\u300d\u3068\u3044\u3046\u5177\u5408\u3067\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30e2\u30d0\u30a4\u30eb\u3067\u6587\u5b57\u30b3\u30fc\u30c9\u7d61\u307f\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u305f<\/h2>\n<p>\u30e2\u30d0\u30a4\u30eb\u5bfe\u5fdc\u3059\u308b\u306a\u3089 jpmobile \u3092\u4f7f\u3048\u3070 OK \u304f\u3089\u3044\u306b\u8003\u3048\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u6587\u5b57\u30b3\u30fc\u30c9\u7d61\u307f\u3067\u3044\u304f\u3064\u304b\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Ruby1.9 \u304b\u3089\u6587\u5b57\u5217\u304c\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u60c5\u5831\u3092\u6301\u3064\u3088\u3046\u306b\u306a\u3063\u305f\u305f\u3081\u3001\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u9069\u5207\u306b\u6271\u3048\u3066\u3044\u306a\u3044\u30b1\u30fc\u30b9\u3067 EncodingError \u304c\u767a\u751f\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\uff08\u4f8b\u5916\u304c\u767a\u751f\u3057\u306a\u3044\u306b\u3057\u3066\u3082\u6587\u5b57\u5316\u3051\u306b\u306a\u3063\u305f\u308a\u30fb\u30fb\uff09<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001POST \u3067\u9001\u3089\u308c\u3066\u304d\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u3064\u3044\u3066\u306f jpmobile \u304c\u5bfe\u5fdc\u3057\u3066\u304f\u308c\u305f\u306e\u3067\u826f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001GET \u3067\u6e21\u3055\u308c\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u81ea\u5206\u3067 URI \u30a8\u30f3\u30b3\u30fc\u30c9\/\u30c7\u30b3\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30e2\u30d0\u30a4\u30eb\u306b\u3064\u3044\u3066\u306f\u3001\u5b9f\u6a5f\u3067\u30c6\u30b9\u30c8\u3059\u308b\u6642\u9593\u3068\u3001\u4f55\u304b\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u6642\u306b\u5bfe\u5fdc\u3059\u308b\u6642\u9593\u3092\u304d\u3061\u3093\u3068\u898b\u8fbc\u3093\u3067\u304a\u304f\u3053\u3068\u304c\u91cd\u8981\u3060\u306a\u3001\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u4ed5\u69d8\u5909\u66f4\u306e\u5302\u3044\u3092\u611f\u3058\u305f\u3068\u304d\u306f grep \u3057\u3084\u3059\u3044\u540d\u524d\u3092\u4ed8\u3051\u305f<\/h2>\n<p>\u300c\u3053\u3053\u306f\u4ed5\u69d8\u304c\u5909\u308f\u308a\u305d\u3046\u3060\u300d\u3068\u611f\u3058\u308b\u3088\u3046\u306a\u3068\u3053\u308d\u306f\u3001\u30e2\u30c7\u30eb\u3084\u30d8\u30eb\u30d1\u30fc\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u5207\u308a\u51fa\u3057\u305f\u4e0a\u3067\u3001grep \u3057\u3084\u3059\u3044\u540d\u524d\u3092\u4ed8\u3051\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001View \u3067\u30e6\u30fc\u30b6\u306e\u540d\u524d\u3092\u51fa\u3059\u3068\u3053\u308d\u304c\u4f55\u30f6\u6240\u3082\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u3068\u308a\u3042\u3048\u305a\u306f\u300c\u7530\u4e2d\u3055\u3093\u300d\u3068\u3044\u3046\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u8868\u793a\u3059\u308b\u4e8b\u306b\u4eee\u6c7a\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u5f8c\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u304f\u3001\u305d\u308c\u304c\u300c\u7530\u4e2d\u300d\u306b\u306a\u308b\u306e\u304b\u3001\u300c\u7530\u4e2d\u592a\u90ce\u300d\u306b\u306a\u308b\u306e\u304b\u3001\u300c\u7530\u4e2d\u3055\u3093\u300d\u306b\u306a\u308b\u306e\u304b\u3001\u306f\u305f\u307e\u305f\u300c\u30d7\u30ec\u30df\u30a2\u30e0\u4f1a\u54e1\u3000\u7530\u4e2d\u69d8\u300d\u306b\u306a\u308b\u306e\u304b\u3001\u8272\u3005\u306a\u30d1\u30bf\u30fc\u30f3\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u304c\u3001\u307e\u3060\u6c7a\u307e\u3063\u3066\u3044\u306a\u3044\u30fb\u30fb\u30fb\u3002\u305d\u306e\u3088\u3046\u306a\u6642\u306f View \u3067\u300c&lt;%= @user.name %&gt;\u300d\u306e\u3088\u3046\u306b\u66f8\u304f\u306e\u3067\u306f\u306a\u304f\u3001\u30e2\u30c7\u30eb\u3084\u30d8\u30eb\u30d1\u30fc\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066\u5207\u308a\u51fa\u3059\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306a formatted_user_name \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u308a\u3001\u305d\u308c\u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:ruby decode:true\"># TODO \u8868\u793a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u6c7a\u5b9a\u5f8c\u306b\u6574\u7406\u3059\u308b\r\ndef formatted_user_name(user)\r\n  \"#{user.name}\u3055\u3093\"\r\nend<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u8868\u793a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u6c7a\u307e\u3063\u305f\u6bb5\u968e\u3067\u300cformatted_user_name\u300d\u306e\u5b9f\u88c5\u3092\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u6e08\u307f\u307e\u3059\u3057\u3001\u4eee\u306b\u300c\u305d\u3053\u306b\u306f\u30e6\u30fc\u30b6\u540d\u3067\u306f\u306a\u304f\u30e6\u30fc\u30b6\u306e\u30e9\u30f3\u30af\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u306b\u5909\u66f4\uff01\u300d\u3068\u306a\u3063\u3066\u3082\u3001grep \u3067\u300cformatted_user_name\u300d\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u7b87\u6240\u3092\u6d17\u3044\u51fa\u3057\u3001\u300c&lt;%= user.rank %&gt;\u300d\u306b\u7f6e\u63db\u3059\u308b\u3060\u3051\u3067\u6e08\u307f\u307e\u3059\uff08\u6700\u521d\u304b\u3089\u300c&lt;%= user.name %&gt;\u300d\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3057\u3066\u3044\u305f\u5834\u5408\u3001\u300cname\u300d\u306e\u3088\u3046\u306a\u826f\u304f\u4f7f\u3046\u6587\u5b57\u5217\u3067 grep \u3059\u308b\u3053\u3068\u306b\u306a\u308a\u3001\u95a2\u4fc2\u306a\u3044\u90e8\u5206\u307e\u3067\u30d2\u30c3\u30c8\u3057\u3066\u3057\u307e\u3044\u9762\u5012\u3067\u3059\uff09\u3002<\/p>\n<p>Java \u306e\u5834\u5408\u3067\u306f\u5909\u6570\u540d\u3084\u30e1\u30bd\u30c3\u30c9\u540d\u3092\u5909\u3048\u305f\u3044\u5834\u5408\u306f IDE \u306e\u6a5f\u80fd\u3067\u5b89\u5168\u306b\u4e00\u62ec\u7f6e\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001Ruby \u306e\u3088\u3046\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3067\u306f\u3001\u307e\u3060\u307e\u3060\u7c21\u5358\u306b\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u3093\u306a\u6642\u306f\u5f8c\u3067\u4e00\u62ec\u5909\u66f4\u3059\u308b\u3053\u3068\u3092\u898b\u8d8a\u3057\u3066 grep \u3057\u3084\u3059\u3044\u540d\u524d\u3092\u4ed8\u3051\u3066\u304a\u304f\u3053\u3068\u3082\u4e00\u3064\u306e\u624b\u304b\u306a\u3068\u601d\u3044\u307e\u3059\uff08\u305d\u3046\u3044\u3046\u30b3\u30fc\u30c9\u3092\u305d\u306e\u307e\u307e\u653e\u7f6e\u3057\u305f\u3089\u30c0\u30e1\u3067\u3059\u304c\uff09\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306f\u91cd\u8981\u3060\u3063\u305f<\/h2>\n<p>\u3088\u304f\u3042\u308b\u8a71\u306b\u300c\u6642\u9593\u304c\u7121\u304b\u3063\u305f\u306e\u3067\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306f\u66f8\u304b\u306a\u3044\u300d\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u6642\u9593\u304c\u7121\u3044\u304b\u3089\u3053\u305d\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u91cd\u8981\uff01 \u3068\u5f37\u304f\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n<p>\u300c\u6642\u9593\u304c\u7121\u3044\u300d\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u305d\u308c\u4ee5\u524d\u306e\u30d5\u30a7\u30fc\u30ba\u3067\u5b9f\u88c5\u30d5\u30a7\u30fc\u30ba\u3092\u5727\u8feb\u3059\u308b\u4f55\u304b\u304c\u3042\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u300c\u30ab\u30c3\u30c8\u30aa\u30fc\u30d0\u30fc\u306e\u65e5\u306f\u65e2\u306b\u6c7a\u307e\u3063\u3066\u3044\u308b\u300d\u300c\u4ed5\u69d8\u306e\u78ba\u5b9a\u306b\u4e88\u60f3\u4ee5\u4e0a\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3063\u305f\u300d\u300c\u5b9f\u88c5\u958b\u59cb\u3092\u3053\u308c\u4ee5\u4e0a\u9045\u3089\u305b\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u300d\u300c\u958b\u767a\u306f\u30b9\u30bf\u30fc\u30c8\u3057\u3066\u4ed5\u69d8\u306f\u4f5c\u308a\u306a\u304c\u3089\u6c7a\u3081\u307e\u3057\u3087\u3046\u300d\u3068\u3044\u3046\u3082\u306e\u304c\u826f\u304f\u3042\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u72b6\u6cc1\u3067\u306f\u3001\u5b9f\u88c5\u6e08\u307f\u306e\u30b3\u30fc\u30c9\u306b\u624b\u3092\u5165\u308c\u308b\u983b\u5ea6\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u30a8\u30f3\u30d0\u30b0\u3084\u30c7\u30b0\u30ec\u30fc\u30c9\u306e\u30ea\u30b9\u30af\u304c\u975e\u5e38\u306b\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u304c\u3042\u308c\u3070\u65e2\u5b58\u306e\u30b3\u30fc\u30c9\u3092\u5b89\u5fc3\u3057\u3066\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3082\u3084\u308a\u3084\u3059\u3044\u306e\u3067\u3001\u958b\u767a\u7d42\u76e4\u306b\u306a\u3063\u3066\u3082\u30b9\u30d4\u30fc\u30c9\u3092\u843d\u3068\u3055\u305a\u306b\u99c6\u3051\u629c\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u81ea\u52d5\u5316\u3059\u308b\u3068\u697d\u3060\u3063\u305f<\/h2>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u3084\u3001\u521d\u671f\u30c7\u30fc\u30bf\u306e\u66f4\u65b0\u3001\u30c6\u30b9\u30c8\u7528\u30c7\u30fc\u30bf\u306e\u767b\u9332\u3084\u305d\u306e\u4ed6\u3082\u308d\u3082\u308d\u30fb\u30fb\u3002<\/p>\n<p>\u4f55\u5ea6\u3082\u884c\u3046\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3057\u305f\u3053\u3068\u3067\u3001\u3060\u3044\u3076\u697d\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u81ea\u52d5\u5316\u306e\u65b9\u6cd5\u306f\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u305f\u308a\u3001rake \u30bf\u30b9\u30af\u3092\u4f5c\u3063\u305f\u308a\u3001\u81ea\u52d5\u5316\u30c4\u30fc\u30eb\u3092\u5c0e\u5165\u3057\u305f\u308a\u3001\u8272\u3005\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u3084\u3063\u305f\u3053\u3068\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<h3>\u30c7\u30d7\u30ed\u30a4\u30c4\u30fc\u30eb Capistrano \u306e\u5c0e\u5165<\/h3>\n<p>Capistrano \u306f\u904e\u53bb\u306b\u3082\u4f7f\u3063\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u30c7\u30d7\u30ed\u30a4\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3059\u308b\u305f\u3081\u306e\u529b\u5f37\u3044\u5473\u65b9\u3067\u3059\u3002<\/p>\n<h3>\u521d\u671f\u30c7\u30fc\u30bf\u3092\u767b\u9332\u3059\u308b rake \u30bf\u30b9\u30af\u306e\u4f5c\u6210<\/h3>\n<p>\u521d\u671f\u30c7\u30fc\u30bf\u306e\u767b\u9332\u65b9\u6cd5\u306f Rails \u306e\u4e2d\u3067\u3082\u6bd4\u8f03\u7684\u81ea\u7531\u306a\u90e8\u5206\u3067\u3042\u308a\u3001\u300crake db:seed \u3067 db\/seeds.rb \u304c\u5b9f\u884c\u3055\u308c\u308b\u300d\u3068\u3044\u3046\u3053\u3068\u3057\u304b\u6c7a\u307e\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u300crake db:seed:users\u300d\u306e\u3088\u3046\u306a\u30c6\u30fc\u30d6\u30eb\u3054\u3068\u306b\u521d\u671f\u30c7\u30fc\u30bf\u3092\u767b\u9332\u3059\u308b rake \u30bf\u30b9\u30af\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u521d\u671f\u30c7\u30fc\u30bf\u3092\u767b\u9332\u3059\u308b rake \u30bf\u30b9\u30af\u306f\u4f55\u5ea6\u5b9f\u884c\u3057\u3066\u3082\u5927\u4e08\u592b\u306a\u3088\u3046\u306b\u3001\u300c\u65e2\u5b58\u30c7\u30fc\u30bf\u306e\u524a\u9664 \u2192 \u30b7\u30fc\u30b1\u30f3\u30b9\u3092\u30ea\u30bb\u30c3\u30c8 \u2192 \u30c7\u30fc\u30bf\u767b\u9332\u300d\u3068\u3044\u3046\u9806\u756a\u3067\u884c\u3046\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u521d\u671f\u30c7\u30fc\u30bf\u306b\u5909\u66f4\u304c\u3042\u3063\u305f\u5834\u5408\u3067\u3082\u3001\u300crake db:seed\u300d\u3092\u5b9f\u884c\u3059\u308c\u3070\u826f\u3044\uff08\uff1d\u305d\u306e\u4ed6\u306e\u9762\u5012\u306a\u4f5c\u696d\u304c\u5fc5\u8981\u306a\u3044\uff09\u306e\u3067\u697d\u3067\u3059\u3002<\/p>\n<h3>\u30e6\u30fc\u30b6\u304c\u521d\u671f\u767b\u9332\u3059\u308b\u30c7\u30fc\u30bf\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u767b\u9332\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f5c\u6210<\/h3>\n<p>\u521d\u671f\u30c7\u30fc\u30bf\u3067\u306f\u7121\u3044\u3082\u306e\u306e\u3001\u30e6\u30fc\u30b6\u304c\u767b\u9332\u3059\u308b\u30c7\u30fc\u30bf\u304c\u3042\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u767b\u9332\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u826f\u304f\u3042\u308b\u5931\u6557\u8ac7\u3068\u3057\u3066\u3001\u300c\u958b\u767a\u4e2d\u306f\u300c\u30c6\u30b9\u30c8\u30c6\u30b9\u30c8\u300d\u306e\u3088\u3046\u306a\u5024\u3057\u304b\u5165\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u6c17\u4ed8\u304b\u306a\u304b\u3063\u305f\u304c\u3001\u672c\u756a\u7a3c\u50cd\u3057\u3066\u30ea\u30a2\u30eb\u306a\u30c7\u30fc\u30bf\u304c\u767b\u9332\u3055\u308c\u305f\u3089\u3001\u60f3\u5b9a\u3088\u308a\u3082\u9577\u3044\u6587\u5b57\u6570\u304c\u767b\u9332\u3055\u308c\u305f\u306e\u3067\u30c7\u30b6\u30a4\u30f3\u304c\u5d29\u308c\u3066\u3057\u307e\u3063\u305f\u300d\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u5931\u6557\u3092\u72af\u3055\u306a\u3044\u305f\u3081\u306b\u3082\u3001\u30ea\u30a2\u30eb\u306a\u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u767b\u9332\u3067\u304d\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h3>ER\u56f3\u304b\u3089\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u30c4\u30fc\u30eb<\/h3>\n<p>ER\u56f3\u306e\u4f5c\u6210\u306b\u306f <a href=\"http:\/\/www.wind.sannet.ne.jp\/m_matsu\/developer\/a5m2\/\">A5:SQL Mk-2<\/a> \u3068\u3044\u3046\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4f5c\u6210\u3057\u305f ER \u56f3\u304b\u3089 Rails \u306e\u30e2\u30c7\u30eb\u3084\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3001\u30ed\u30b1\u30fc\u30eb\u30d5\u30a1\u30a4\u30eb\u3084\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306a\u3069\u3092\u751f\u6210\u3059\u308b\u30c4\u30fc\u30eb\u3092\u4e8b\u524d\u306b\u4f5c\u3063\u3066\u3044\u305f\u306e\u3067\u3001ER\u56f3\u306e\u4fee\u6b63\u3092\u3059\u3050\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u53cd\u6620\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002ER \u56f3\u3092\u898b\u306a\u304c\u3089\u624b\u4f5c\u696d\u3067\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3001\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3001\u30fb\u30fb\u30fb\u306a\u3069\u3068\u3084\u308b\u5834\u5408\u3068\u6bd4\u3079\u308b\u3068\u3001\u958b\u767a\u30b9\u30d4\u30fc\u30c9\u304c\u3059\u3044\u3076\u3093\u9055\u3044\u307e\u3059\u3002<\/p>\n<h2>\u6e96\u5099\u516b\u5272<\/h2>\n<p>\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3067\u306f\u6b63\u3057\u3044\u958b\u767a\u30d7\u30ed\u30bb\u30b9\u3067\u9032\u3081\u308b\u3053\u3068\u3082\u91cd\u8981\u3067\u3059\u304c\u3001\u958b\u767a\u304c\u59cb\u307e\u308b\u524d\u306b\u51fa\u6765\u308b\u9650\u308a\u306e\u6e96\u5099\u3092\u3059\u308b\u3053\u3068\u3082\u91cd\u8981\u3060\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u6848\u4ef6\u304c\u59cb\u307e\u308b\u524d\u306b\u6c4e\u7528\u7684\u306a\u6a5f\u80fd\u3092 Gem \u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u307e\u3068\u3081\u3066\u3044\u305f\u306e\u3067\u3001\u300c\u3069\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3082\u3088\u304f\u3042\u308b\u51e6\u7406\u300d\u3092\u624b\u8efd\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001Gem \u4ee5\u5916\u306e\u30c4\u30fc\u30eb\uff08\u4e0a\u3067\u7d39\u4ecb\u3057\u305f ER \u56f3\u304b\u3089\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b\u30c4\u30fc\u30eb\uff09\u3082\u4e8b\u524d\u306b\u6e96\u5099\u3057\u3066\u3044\u305f\u3053\u3068\u3067\u3060\u3044\u3076\u697d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6e96\u5099\u516b\u5272\u3068\u3044\u3046\u8a00\u8449\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u307e\u3055\u306b\u305d\u306e\u901a\u308a\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u306f\u3001Rails3 \u6848\u4ef6\u3092\u3084\u3063\u3066\u307f\u3066\u306e\u7d20\u76f4\u306a\u611f\u60f3\u3092\u4f1d\u3048\u3089\u308c\u305f\u3089\u3068\u601d\u3044\u306a\u304c\u3089\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u826f\u304b\u3063\u305f\u3053\u3068\u3082\u60aa\u304b\u3063\u305f\u3053\u3068\u3082\u542b\u3081\u3066\u66f8\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u30b0\u30c3\u30c9\u30ce\u30a6\u30cf\u30a6\u3070\u304b\u308a\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u3046\u3057\u305f\u65b9\u304c\u826f\u3044\u3093\u3058\u3083\u306a\u3044\u304b\u3001\u3068\u3044\u3046\u3054\u610f\u898b\u304c\u3042\u308a\u307e\u3057\u305f\u3089\u6559\u3048\u3066\u3044\u305f\u3060\u3051\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u66f8\u3044\u305f\u3053\u3068\u4ee5\u5916\u306b\u3082\u3001\u300c\u3042\u3042\u3059\u308c\u3070\u826f\u304b\u3063\u305f\u300d\u300c\u3053\u3046\u3059\u308c\u3070\u826f\u304b\u3063\u305f\u300d\u3068\u601d\u3046\u3068\u3053\u308d\u306f\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u308c\u306f\u307e\u305f\u5225\u306e\u6a5f\u4f1a\u306b\u3054\u7d39\u4ecb\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f5c\u6210\u3057\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u30c4\u30fc\u30eb\u306b\u3064\u3044\u3066\u306f\u3001\u53ef\u80fd\u306a\u9650\u308a\u516c\u958b\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001Enjoy Rails!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u3061\u306b\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u3001Rails3 \u3092\u4f7f\u7528\u3057\u305f\u6848\u4ef6\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u305d\u306e\u4e2d\u3067\u601d\u3063\u305f\u3053\u3068\u3001\u5206\u304b\u3063\u305f\u3053\u3068\u3092\u307e\u3068\u3081\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2012\/12\/10\/rails3-%e6%a1%88%e4%bb%b6%e3%82%92%e3%81%93%e3%81%aa%e3%81%97%e3%81%a6%e3%81%bf%e3%81%a6%e3%80%81%e6%80%9d%e3%81%a3%e3%81%9f%e3%81%93%e3%81%a8%e5%88%86%e3%81%8b%e3%81%a3%e3%81%9f%e3%81%93%e3%81%a8\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[22],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/955"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=955"}],"version-history":[{"count":1,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/955\/revisions"}],"predecessor-version":[{"id":18008,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/955\/revisions\/18008"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}