{"id":272,"date":"2013-02-02T13:38:07","date_gmt":"2013-02-02T04:38:07","guid":{"rendered":"http:\/\/blog.tanitanin.net\/?p=272"},"modified":"2013-03-08T13:15:32","modified_gmt":"2013-03-08T04:15:32","slug":"ruby-on-rails%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b%e3%81%93%e3%81%a8%e3%81%ab%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/blog.tanitanin.net\/?p=272","title":{"rendered":"Ruby on Rails\u3092\u4f7f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f"},"content":{"rendered":"<p><a href=\" http:\/\/blog.tanitanin.net\/?p=263 \">\u524d\u306e\u8a18\u4e8b<\/a>\u3067Cygwin\u306bRails\u306e\u74b0\u5883\u3092\u4f5c\u308a\uff0c&#8221;project&#8221;\u3068\u3044\u3046\u540d\u524d\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u305f\uff0e<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u306a\u3069\u306f\u524d\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\uff0e<\/p>\n<p>Rails\u306b\u306f\uff0cWEBrick\u3068\u3044\u3046\u74b0\u5883\u304c\u3042\u308a\uff0c\u30ed\u30fc\u30ab\u30eb\u3067\u306e\u30c6\u30b9\u30c8\u74b0\u5883\u3092\u4f5c\u3063\u3066\u304f\u308c\u308b\u307f\u305f\u3044\uff0e<br \/>\n $ cd project<br \/>\n $ rails server<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30dd\u30fc\u30c83000\u3067\u52d5\u4f5c\u3059\u308b\u306e\u3067\uff0chttp:\/\/localhost:3000\/\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068Welcome aboard\u3068\u753b\u9762\u304c\u51fa\u3066\u304f\u308b\uff0e<\/p>\n<p>Rails\u306fMVC\u30e2\u30c7\u30eb\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\uff0e<br \/>\nMVC\u30e2\u30c7\u30eb\u3068\u306f\uff0c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u51e6\u7406\u3084\u64cd\u4f5c\u753b\u9762\u3092\u30e2\u30c7\u30eb\u30fb\u30d3\u30e5\u30fc\u30fb\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3068\u3044\u30463\u3064\u306e\u90e8\u54c1\u306b\u5f79\u5272\u5206\u62c5\u3055\u305b\u308b\u69cb\u6210\u306e\u3053\u3068\uff0ePHP\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3084Django\u306a\u3069\u3068\u57fa\u672c\u306f\u540c\u3058\u69d8\u5b50\uff0e<\/p>\n<p>Rails\u3067\u3053\u308c\u3089\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f&#8221;rails generate&#8221;\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3059\u308b\uff0e<\/p>\n<p> $ rails generate controller hoge<br \/>\n $ rails generate view fuga<br \/>\n $ rails generate model piyo<\/p>\n<p>&#8220;rails generate &#8230;&#8221;\u306f&#8221;rails g &#8230;&#8221;\u3068\u77ed\u7e2e\u3057\u3066\u66f8\u304f\u3053\u3068\u3082\u3067\u304d\u308b\uff0e<\/p>\n<p>\u624b\u59cb\u3081\u306bhoge\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u6210\u3057\u3066\u307f\u308b\u3068\uff0c<br \/>\n $ rails g controller hoge<br \/>\n      create  app\/controllers\/hoge_controller.rb<br \/>\n      invoke  erb<br \/>\n      create    app\/views\/hoge<br \/>\n      invoke  test_unit<br \/>\n      create    test\/functional\/hoge_controller_test.rb<br \/>\n      invoke  helper<br \/>\n      create    app\/helpers\/hoge_helper.rb<br \/>\n      invoke    test_unit<br \/>\n      create      test\/unit\/helpers\/hoge_helper_test.rb<br \/>\n      invoke  assets<br \/>\n      invoke    coffee<br \/>\n      create      app\/assets\/javascripts\/hoge.js.coffee<br \/>\n      invoke    scss<br \/>\n      create      app\/assets\/stylesheets\/hoge.css.scss<br \/>\n\u3053\u3093\u306a\u304b\u3093\u3058\u3067controller\u672c\u4f53\u3068\uff0cview\u3084\u30c6\u30b9\u30c8\u7528\u306e\u30b3\u30fc\u30c9\u306a\u3069\u3082\u751f\u6210\u3055\u308c\u308b\uff0e<br \/>\ncontroller\u672c\u4f53\u306fapp\/controllers\/\u4ee5\u4e0b\u306b\u751f\u6210\u3055\u308c\u308b\u306e\u3067\uff0c\u3053\u308c\u3092\u7de8\u96c6\u3059\u308b\uff0e<\/p>\n<pre class=\"brush:ruby; ruler: true;\">\r\n class HogeController < ApplicationController\r\n end\r\n<\/pre>\n<p>\u6700\u521d\u306f\u3053\u308c\u3060\u3051\u3057\u304b\u66f8\u3044\u3066\u306a\u3044\u306e\u3067\uff0c\u3053\u3053\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3059\u308b\uff0e\u6587\u5b57\u5217\u3092\u8fd4\u3059\u3060\u3051\u306ehello\u95a2\u6570\u3092\u8ffd\u52a0\u3057\u305f\uff0eMVC\u3067\u306f\u3053\u306e\u95a2\u6570\u3092\u30a2\u30af\u30b7\u30e7\u30f3\u3068\u547c\u3076\uff0e<\/p>\n<pre class=\"brush:ruby; ruler: true;\">\r\nclass HogeController < ApplicationController\r\n  def hello\r\n    render :text => \"Hello, Rails world!\r\n  end\r\nend\r\n<\/pre>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u6210\u3057\u305f\u3060\u3051\u3067\u306f\uff0c\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u63a5\u7d9a\u3067\u304d\u306a\u3044\u306e\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff0e<br \/>\n\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u306fconfig\/routes.rb\u306b\u8a18\u8ff0\u3059\u308b\uff0ematch 'url' => 'controller#action'\u3067url\u3068\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u63a5\u7d9a\u3055\u308c\u308b\uff0e<\/p>\n<p>\/hoge\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3068\u304d\u306bhoge\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306ehello\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u547c\u3073\u51fa\u3057\u305f\u3044\u3068\u304d\u306f\uff0c<\/p>\n<pre class=\"brush:ruby; ruler: true;\">\r\n Project::Application.routes.draw do\r\n   match 'hoge' => 'hoge#hello'\r\n end\r\n<\/pre>\n<p>\u3068\u66f8\u3051\u3070\u3088\u3044\uff0e<br \/>\n\"rake routes\"\u30b3\u30de\u30f3\u30c9\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u8a2d\u5b9a\u3092\u4e00\u89a7\u8868\u793a\u3067\u304d\u308b\u306e\u3067\uff0c\u8a2d\u5b9a\u3067\u304d\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\uff0e<\/p>\n<p> $ rake routes<br \/>\n hello  \/hello(.:format) hoge#hello<\/p>\n<p>\u3042\u3068\u306fWEBrick\u3092\u8d77\u52d5\u3057\uff0clocalhost:3000\/hello\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\"Hello, Rails world!\"\u3068\u4e00\u8a00\u8868\u793a\u3055\u308c\u308b\uff0e<\/p>\n<p>view\u306f\u3072\u3068\u307e\u305a\u7f6e\u3044\u3066\u304a\u3044\u3066\uff0c\u6b21\u306f\u30e2\u30c7\u30eb\u3092\u4f5c\u308b\uff0e\u30e2\u30c7\u30eb\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5165\u308c\u308b\u30c7\u30fc\u30bf\u305d\u306e\u3082\u306e\u3092\u8868\u3059\u30e2\u30ce\uff0e\u306f\u3058\u3081\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\uff0e<br \/>\n $ rake db:create<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3060\u3068sqlite3\u306e\u30d5\u30a1\u30a4\u30eb\u304cdb\u30d5\u30a9\u30eb\u30c0\u306b\u751f\u6210\u3055\u308c\u308b\uff0e<\/p>\n<p>\u3064\u3065\u3044\u3066\"rails g model piyo\"\u3068\u5b9f\u884c\u3059\u308b\u3068<br \/>\n      invoke  active_record<br \/>\n      create    db\/migrate\/20130202152004_create_piyos.rb<br \/>\n      create    app\/models\/piyo.rb<br \/>\n      invoke    test_unit<br \/>\n      create      test\/unit\/piyo_test.rb<br \/>\n      create      test\/fixtures\/piyos.yml<br \/>\n\u3068\u3044\u3046\u611f\u3058\u3067app\/models\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306bpiyo.rb\u3084\u5358\u4f53\u30c6\u30b9\u30c8\u95a2\u4fc2\u306e\u3082\u306e\uff0c\u3055\u3089\u306bdb\/migrate\u4ee5\u4e0b\u306b\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u7528\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u751f\u6210\u3055\u308c\u308b\uff0e<br \/>\n\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u4f5c\u6210\u3057\u305f\u3044\u30c6\u30fc\u30d6\u30eb\u306e\u30ab\u30e9\u30e0\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\uff0crake\u3092\u5b9f\u884c\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\uff0e<br \/>\n\u4f5c\u6210\u3057\u3066\u3059\u3050\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u306f<\/p>\n<pre class=\"brush:ruby; ruler: true;\">\r\n class CreatePiyos < ActiveRecord::Migration\r\n   def change\r\n     create_table :piyos do |t|\r\n \r\n       t.timestamps\r\n     end\r\n   end\r\n end\r\n<\/pre>\n<p>\u306e\u3088\u3046\u306a\u611f\u3058\uff0e\u3053\u308c\u306b\u6587\u5b57\u5217\u578b\u306ename\u3068\u65e5\u4ed8\u578b\u306ecreate_date\u3068\u3044\u3046\u30ab\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3066\u307f\u308b\uff0e\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u306b\u306f\uff0cstring\uff0ctext\uff0cinteger\uff0cfloat\uff0cdecimal\uff0cdatetime\uff0ctimestamp\uff0ctime\uff0cdate\uff0cbinary\uff0cboolean\u304c\u6271\u3048\u308b\uff0e<\/p>\n<pre class=\"brush:ruby; ruler: true;\">\r\n class CreatePiyos < ActiveRecord::Migration\r\n   def change\r\n     create_table :piyos do |t|\r\n       t.string :name\r\n       t.date :create_date\r\n       t.timestamps\r\n     end\r\n   end\r\n end\r\n<\/pre>\n<p>\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u8ffd\u8a18\u3057\u305f\uff0e\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u306b\u306f\uff0cstring\uff0ctext\uff0cinteger\uff0cfloat\uff0cdecimal\uff0cdatetime\uff0ctimestamp\uff0ctime\uff0cdate\uff0cbinary\uff0cboolean\u304c\u6271\u3048\u308b\uff0e\u307e\u305f\uff0c:limit\u3084:null\uff0c:default\u306a\u3069\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\uff0e\u30d7\u30e9\u30a4\u30de\u30ea\u30ad\u30fc\u3068\u306a\u308bID\u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\uff0e<\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304d\u306a\u304a\u3057\u305f\u3089\"rake db:migrate\"\u3092\u5b9f\u884c\uff0e<br \/>\n $ rake db:migrate<br \/>\n ==  CreatePiyos: migrating ====================================================<br \/>\n -- create_table(:piyos)<br \/>\n    -> 0.0040s<br \/>\n ==  CreatePiyos: migrated (0.0040s) ===========================================<br \/>\n\u3053\u308c\u3067\u30c6\u30fc\u30d6\u30eb\u304c\u5b8c\u6210\uff0e\"rails dbconsole\"\u3092\u5b9f\u884c\u3057\u3066\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u30c6\u30fc\u30d6\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068<br \/>\n sqlite> .tables<br \/>\n piyos              schema_migrations<br \/>\n sqlite> .schema piyos<br \/>\n CREATE TABLE \"piyos\" (\"id\" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, \"name\" varchar(255), \"create_date\" date, \"created_at\" datetime NOT NULL, \"updated_at\" datetime NOT NULL);<br \/>\n\u306e\u3088\u3046\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff0e\u3069\u3046\u3084\u3089created_at\u3068update_at\u3082\u540c\u6642\u306b\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\u3089\u3057\u3044\uff0e<\/p>\n<p>\u3055\u304d\u307b\u3069\u306e\u30e2\u30c7\u30eb\u3092\u751f\u6210\u3057\u305f\u3068\u304d\u306b\u3067\u304d\u305fpiyo.rb\u306f<br \/>\n class Piyo < ActiveRecord::Base\n end\n\u3068\u4f55\u3082\u8a18\u8ff0\u3055\u308c\u3066\u3044\u306a\u3044\u72b6\u614b\u3060\u304c\uff0cActiveRecord::Base\u304c\u7d99\u627f\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3067\uff0c\u30e2\u30c7\u30eb\u306b\u5bfe\u3059\u308bCRUD\u306e\u3088\u3046\u306a\u305f\u304f\u3055\u3093\u306e\u6a5f\u80fd\u304c\u4f55\u3082\u66f8\u304b\u305a\u306b\u3067\u304d\u308b\uff0e\nRails3.2.3\u4ee5\u964d\u3067\u306f\uff0c\u30c7\u30fc\u30bf\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\n\n\n<pre class=\"brush:ruby; ruler: true;\">\r\nclass Piyo < ActiveRecord::Base\r\n  attr_accessible :name, :create_date\r\nend\r\n<\/pre>\n<p>\u3068\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\uff0e\u9006\u306b\u30a2\u30af\u30bb\u30b9\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u306b\u306fattr_protected\u3092\u3064\u3051\u3066\u304a\u304f\u3068\u3088\u3044\uff0e<\/p>\n<p>db\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306b\u3042\u308bseeds.rb\u306b<\/p>\n<pre class=\"brush:ruby; ruler: true;\">\r\n  Piyo.create(:name=>\"foo\",:create_date=>\"2012-02-01\")\r\n  Piyo.create(:name=>\"bar\",:create_date=>\"2012-02-02\")\r\n<\/pre>\n<p>\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u66f8\u3044\u3066\"rake db:seed\"\u3092\u5b9f\u884c\u3059\u308b\u3068piyos\u30c6\u30fc\u30d6\u30eb\u306b2\u3064\u306e\u30ec\u30b3\u30fc\u30c9\u304c\u767b\u9332\u3055\u308c\u308b\uff0e<br \/>\n $sqlite> select * from piyos;<br \/>\n $1|foo|2012-02-01|2013-02-05 14:19:20.891345|2013-02-05 14:19:20.891345<br \/>\n $2|bar|2012-02-02|2013-02-05 14:19:21.094146|2013-02-05 14:19:21.094146<\/p>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u4e2d\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\uff0c\u30d3\u30e5\u30fc\u306b\u6e21\u3059\u3053\u3068\u3067\u4e2d\u8eab\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\uff0elocalhost:3000\/hello\u304b\u3089\u547c\u3073\u51fa\u3059\u305f\u3081\u306bapp\/view\u306e\u5909\u66f4\uff0e<\/p>\n<pre class=\"brush:html; ruler: true;\">\r\n <h1>Hello<\/h1>\r\n <p>\r\n   <% @piyos.each do |piyo| %>\r\n   [\u540d\u524d] <%= piyo.name %>, [\u4f5c\u6210\u65e5] <%= piyo.create_date %><br \/>\r\n   <% end %>\r\n <\/p>$\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u306e\u8a18\u4e8b\u3067Cygwin\u306bRails\u306e\u74b0\u5883\u3092\u4f5c\u308a\uff0c&#8221;project&#8221;\u3068\u3044\u3046\u540d\u524d\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u305f\uff0e \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u306a\u3069\u306f\u524d\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\uff0e Rails\u306b\u306f\uff0cWEBrick\u3068\u3044\u3046\u74b0\u5883\u304c\u3042\u308a\uff0c [&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,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[73,64],"tags":[],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-rails","category-64"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5lSjy-4o","jetpack-related-posts":[{"id":263,"url":"https:\/\/blog.tanitanin.net\/?p=263","url_meta":{"origin":272,"position":0},"title":"Cygwin\u3067Ruby on Rails\u306e\u74b0\u5883\u3065\u304f\u308a","author":"tanitanin","date":"2013\u5e742\u67082\u65e5","format":false,"excerpt":"Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52c9\u5f37\u306b\u3068Ruby on Rails\u3092\u3044\u3058\u3063\u3066\u307f\u308b\uff0e \u74b0\u5883\u306fCygwin + \u2026","rel":"","context":"Rails","block_context":{"text":"Rails","link":"https:\/\/blog.tanitanin.net\/?cat=73"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":327,"url":"https:\/\/blog.tanitanin.net\/?p=327","url_meta":{"origin":272,"position":1},"title":"Rails3+Devise+OmniAuth\u3067\u7c21\u5358\u306b\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u3064\u304f\u308b","author":"tanitanin","date":"2013\u5e742\u670826\u65e5","format":false,"excerpt":"\u4ee5\u524d\uff0cOmniAuth\u3067\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u3092\u3064\u304f\u3063\u3066\u3044\u305f\u3068\u304d\u306b\uff0cGoogle\u3067\u8abf\u3079\u3066\u305f\u3089Devise\u3068\u3044\u3046\u2026","rel":"","context":"Rails","block_context":{"text":"Rails","link":"https:\/\/blog.tanitanin.net\/?cat=73"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":302,"url":"https:\/\/blog.tanitanin.net\/?p=302","url_meta":{"origin":272,"position":2},"title":"Rails3\u3067OmniAuth\u3092\u4f7f\u3063\u3066\u8a8d\u8a3c\u6a5f\u80fd","author":"tanitanin","date":"2013\u5e742\u670824\u65e5","format":false,"excerpt":"Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u304f\u308b\u3068\u304d\u306b\u4e00\u756a\u5927\u4e8b\u306a\u306e\u304c\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\uff0e\u6700\u8fd1\u306fTwitter\u3068\u304bFacebo\u2026","rel":"","context":"Rails","block_context":{"text":"Rails","link":"https:\/\/blog.tanitanin.net\/?cat=73"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":387,"url":"https:\/\/blog.tanitanin.net\/?p=387","url_meta":{"origin":272,"position":3},"title":"Rails3\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092nginx+unicorn\u4e0a\u3067\u52d5\u304b\u3059\u30e1\u30e2","author":"tanitanin","date":"2013\u5e743\u67088\u65e5","format":false,"excerpt":"Rails\u3092nginx\u3068unicorn\u3067\u52d5\u304b\u3059\u3068\u901f\u3044\u3068\u3044\u3046\u30a6\u30ef\u30b5\u3092\u8033\u306b\u3057\u305f\u306e\u3067\uff0c\u3055\u3063\u305d\u304f\u3084\u3063\u3066\u307f\u308b\u3053\u2026","rel":"","context":"Rails","block_context":{"text":"Rails","link":"https:\/\/blog.tanitanin.net\/?cat=73"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":472,"url":"https:\/\/blog.tanitanin.net\/?p=472","url_meta":{"origin":272,"position":4},"title":"Capistrano v3\u3092\u8a66\u3057\u3066\u307f\u308b(1)","author":"tanitanin","date":"2013\u5e7410\u67088\u65e5","format":false,"excerpt":"\u3053\u3093\u306b\u3061\u306f\uff0c\u305f\u306b\u305f\u306b\u3067\u3059\uff0e Deploy\u306e\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3068\u3057\u3066\u6709\u540d\u306aCapistrano\u3067\u3059\u304c\uff0c6\u6708\u306b\u2026","rel":"","context":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","block_context":{"text":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","link":"https:\/\/blog.tanitanin.net\/?cat=64"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":445,"url":"https:\/\/blog.tanitanin.net\/?p=445","url_meta":{"origin":272,"position":5},"title":"capistrano\u3067rails\u3058\u3083\u306a\u3044\u3082\u306e\u3092deploy\u3059\u308b","author":"tanitanin","date":"2013\u5e745\u670828\u65e5","format":false,"excerpt":"\u3053\u3093\u306b\u3061\u306f\uff0c\u305f\u306b\u305f\u306b\u3067\u3059\uff0e Rails\u306e\u30c7\u30d7\u30ed\u30a4\u30c4\u30fc\u30eb\u3068\u3057\u3066\u6709\u540d\u306a\u306e\u304ccapistrano\u3067\u3059\u304c\uff0c \u2026","rel":"","context":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","block_context":{"text":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","link":"https:\/\/blog.tanitanin.net\/?cat=64"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272"}],"version-history":[{"count":29,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":409,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions\/409"}],"wp:attachment":[{"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tanitanin.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}