ruby

---恢复内容开始---

   1 caopu@caopu-ThinkPad-X1:/opt/navicat_mysql$ ls
   2 LGPLV2  Navicat  start_navicat  wine
   3 caopu@caopu-ThinkPad-X1:/opt/navicat_mysql$ cd /
   4 bin/        dev/        lib64/      opt/        sbin/       tmp/
   5 boot/       etc/        lost+found/ proc/       snap/       usr/
   6 cdrom/      home/       media/      root/       srv/        var/
   7 data/       lib/        mnt/        run/        sys/        
   8 caopu@caopu-ThinkPad-X1:/opt/navicat_mysql$ cd /
   9 bin/        dev/        lib64/      opt/        sbin/       tmp/
  10 boot/       etc/        lost+found/ proc/       snap/       usr/
  11 cdrom/      home/       media/      root/       srv/        var/
  12 data/       lib/        mnt/        run/        sys/        
  13 caopu@caopu-ThinkPad-X1:/opt/navicat_mysql$ cd /home/
  14 caopu/  hadoop/ spark/  
  15 caopu@caopu-ThinkPad-X1:/opt/navicat_mysql$ cd /home/caopu/
  16 .android/          .gnome2/           .nano/             .rvm/
  17 blog/              .gnome2_private/   .navicat64/        .sbt/
  18 .bundle/           httpclient-master/ nginx-1.11.3/      .sogouinput/
  19 .byteexec/         .idea/             nginx-1.9.15/      sparkapp/
  20 .cache/            .idea-build/       .oracle_jre_usage/ .ssh/
  21 .compiz/           .IdeaIC2016.2/     .p2/               .swt/
  22 .config/           .IdeaIC2016.3/     pcre-8.35/         target/
  23 data/              IdeaProjects/      Pictures/          Templates/
  24 .dbus/             .ivy2/             .pki/              Test/
  25 demo/              .java/             .presage/          .thunderbird/
  26 Desktop/           .lantern/          projects/          Videos/
  27 Documents/         .local/            Public/            .vim/
  28 Downloads/         .m2/               .redeclipse/       workspace/
  29 eclipse/           .macromedia/       .rpmdb/            xxx/
  30 .eclipse/          .mozilla/          ruby-dbi/          YukiSpider/
  31 .gconf/            Music/             .RubyMine2016.3/   爬虫文档/
  32 .gem/              mysql/             .RubyMine70/       
  33 .gnome/            mysql-ruby-2.8/    RubymineProjects/  
  34 caopu@caopu-ThinkPad-X1:/opt/navicat_mysql$ cd /home/caopu/demo/
  35 app/    config/ lib/    public/ tmp/    
  36 bin/    db/     log/    test/   vendor/ 
  37 caopu@caopu-ThinkPad-X1:/opt/navicat_mysql$ cd /home/caopu/demo/
  38 caopu@caopu-ThinkPad-X1:~/demo$ ls
  39 app  config     db       Gemfile.lock  log     Rakefile   test  vendor
  40 bin  config.ru  Gemfile  lib           public  README.md  tmp
  41 caopu@caopu-ThinkPad-X1:~/demo$ ralis c
  42 No command 'ralis' found, did you mean:
  43  Command 'rails' from package 'ruby-railties' (universe)
  44 ralis: command not found
  45 caopu@caopu-ThinkPad-X1:~/demo$ rails c
  46 Running via Spring preloader in process 5161
  47 Loading development environment (Rails 5.0.2)
  48 irb(main):001:0> User.first
  49   User Load (0.6ms)  SELECT  `users`.* FROM `users` LIMIT 1
  50 => #<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
  51 irb(main):002:0> User.where({:name=>"admin",:password_digest=>"123456"}).first
  52   User Load (0.7ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'admin' AND `users`.`password_digest` = '123456' LIMIT 1
  53 => #<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
  54 irb(main):003:0> exit
  55 caopu@caopu-ThinkPad-X1:~/demo$ tail -f log/development.log 
  56 
  57 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:01:47 +0800
  58 Processing by SessionsController#create as HTML
  59   Parameters: {"utf8"=>"", "authenticity_token"=>"ULjoPhGTNs3CGEEIPJsuqsPdoiJy86yZRYk/L3FFbZVSFL4FdMZKZlR8Ryj7/t8PMtdqlRt4GlmswyrWNXP3Qw==", "session"=>{"user_id"=>"admin", "password"=>"[FILTERED]"}, "button"=>""}
  60   User Load (0.6ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` IS NULL AND `users`.`password_digest` IS NULL LIMIT 1
  61   Rendering sessions/new.html.erb within layouts/application
  62   Rendered sessions/new.html.erb within layouts/application (2.8ms)
  63 Completed 200 OK in 48ms (Views: 44.9ms | ActiveRecord: 0.6ms)
  64 
  65 
  66 Started GET "/sessions/new" for 127.0.0.1 at 2017-04-06 11:03:44 +0800
  67 Processing by SessionsController#new as HTML
  68   Rendering sessions/new.html.erb within layouts/application
  69   Rendered sessions/new.html.erb within layouts/application (2.7ms)
  70 Completed 200 OK in 65ms (Views: 64.2ms | ActiveRecord: 0.0ms)
  71 
  72 
  73 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:03:50 +0800
  74 Processing by SessionsController#create as HTML
  75   Parameters: {"utf8"=>"", "authenticity_token"=>"VlGOk3JuW3Ex4d5CJKhr7QrnFqsAc9PYJD1akyYjIp1U/dioFzsn2qeF2GLjzZpI++3eHGn4ZRjNd09qYhW4Sw==", "session"=>{"user_id"=>"admin", "password"=>"[FILTERED]"}, "button"=>""}
  76   User Load (0.9ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` IS NULL AND `users`.`password_digest` IS NULL LIMIT 1
  77 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"VlGOk3JuW3Ex4d5CJKhr7QrnFqsAc9PYJD1akyYjIp1U/dioFzsn2qeF2GLjzZpI++3eHGn4ZRjNd09qYhW4Sw==", "session"=>{"user_id"=>"admin", "password"=>"123456"}, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
  78   Rendering sessions/new.html.erb within layouts/application
  79   Rendered sessions/new.html.erb within layouts/application (3.9ms)
  80 Completed 200 OK in 73ms (Views: 57.6ms | ActiveRecord: 3.6ms)
  81 
  82 
  83 Started GET "/sessions/new" for 127.0.0.1 at 2017-04-06 11:05:57 +0800
  84 Processing by SessionsController#new as HTML
  85   Rendering sessions/new.html.erb within layouts/application
  86   Rendered sessions/new.html.erb within layouts/application (2.2ms)
  87 Completed 200 OK in 42ms (Views: 39.6ms | ActiveRecord: 0.0ms)
  88 
  89 
  90 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:06:03 +0800
  91 Processing by SessionsController#create as HTML
  92   Parameters: {"utf8"=>"", "authenticity_token"=>"+7lTiq8dFo2w9v8U+7ps3nTPas50kJv2JUnPRNdoQtP5FQWxykhqJiaS+TQ83517hcWieR0bLTbMA9q9k17YBQ==", "session"=>{"user_id"=>"admin", "password"=>"[FILTERED]"}, "button"=>""}
  93   User Load (0.3ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` IS NULL AND `users`.`password_digest` IS NULL LIMIT 1
  94 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"+7lTiq8dFo2w9v8U+7ps3nTPas50kJv2JUnPRNdoQtP5FQWxykhqJiaS+TQ83517hcWieR0bLTbMA9q9k17YBQ==", "session"=>{"user_id"=>"admin", "password"=>"123456"}, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
  95 nil
  96    (0.3ms)  SELECT COUNT(*) FROM `users`
  97   User Load (0.3ms)  SELECT  `users`.* FROM `users` LIMIT 1
  98 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
  99   Rendering sessions/new.html.erb within layouts/application
 100   Rendered sessions/new.html.erb within layouts/application (2.0ms)
 101 Completed 200 OK in 66ms (Views: 47.2ms | ActiveRecord: 1.6ms)
 102 
 103 
 104 Started GET "/sessions/new" for 127.0.0.1 at 2017-04-06 11:06:56 +0800
 105 Processing by SessionsController#new as HTML
 106   Rendering sessions/new.html.erb within layouts/application
 107   Rendered sessions/new.html.erb within layouts/application (1.9ms)
 108 Completed 200 OK in 62ms (Views: 60.5ms | ActiveRecord: 0.0ms)
 109 
 110 
 111 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:07:03 +0800
 112 Processing by SessionsController#create as HTML
 113   Parameters: {"utf8"=>"", "authenticity_token"=>"+X9EXE/QAsF1O4UYJvq7808bnA91v4bhtL3+IIvMBkb70xJnKoV+auNfgzjhn0pWvhFUuBw0MCFd9+vZz/qckA==", "session"=>{"user_id"=>"admin", "password"=>"[FILTERED]"}, "button"=>""}
 114   User Load (0.6ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'admin' AND `users`.`password_digest` = '123456' LIMIT 1
 115 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"+X9EXE/QAsF1O4UYJvq7808bnA91v4bhtL3+IIvMBkb70xJnKoV+auNfgzjhn0pWvhFUuBw0MCFd9+vZz/qckA==", "session"=><ActionController::Parameters {"user_id"=>"admin", "password"=>"123456"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 116 #<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 117    (0.5ms)  SELECT COUNT(*) FROM `users`
 118   User Load (0.5ms)  SELECT  `users`.* FROM `users` LIMIT 1
 119 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 120   Rendering text template
 121   Rendered text template (0.0ms)
 122 Completed 200 OK in 45ms (Views: 19.2ms | ActiveRecord: 2.4ms)
 123 
 124 
 125 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:07:30 +0800
 126 Processing by ArticlesController#index as HTML
 127   Rendering articles/index.html.erb within layouts/application
 128   Article Load (0.8ms)  SELECT `articles`.* FROM `articles`
 129   Rendered articles/index.html.erb within layouts/application (34.3ms)
 130 Completed 200 OK in 86ms (Views: 76.9ms | ActiveRecord: 3.1ms)
 131 
 132 
 133 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:09:49 +0800
 134 Processing by SessionsController#create as HTML
 135   Parameters: {"utf8"=>"", "authenticity_token"=>"+X9EXE/QAsF1O4UYJvq7808bnA91v4bhtL3+IIvMBkb70xJnKoV+auNfgzjhn0pWvhFUuBw0MCFd9+vZz/qckA==", "session"=>{"user_id"=>"admin", "password"=>"[FILTERED]"}, "button"=>""}
 136   User Load (0.5ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'admin' AND `users`.`password_digest` = '123456' LIMIT 1
 137 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"+X9EXE/QAsF1O4UYJvq7808bnA91v4bhtL3+IIvMBkb70xJnKoV+auNfgzjhn0pWvhFUuBw0MCFd9+vZz/qckA==", "session"=><ActionController::Parameters {"user_id"=>"admin", "password"=>"123456"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 138 #<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 139    (0.4ms)  SELECT COUNT(*) FROM `users`
 140   User Load (0.3ms)  SELECT  `users`.* FROM `users` LIMIT 1
 141 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 142   Rendering text template
 143   Rendered text template (0.0ms)
 144 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.1ms)
 145 
 146 
 147 Started GET "/sessions/new" for 127.0.0.1 at 2017-04-06 11:10:24 +0800
 148 Processing by SessionsController#new as HTML
 149   Rendering sessions/new.html.erb within layouts/application
 150   Rendered sessions/new.html.erb within layouts/application (2.8ms)
 151 Completed 200 OK in 48ms (Views: 46.5ms | ActiveRecord: 0.0ms)
 152 
 153 
 154 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:10:45 +0800
 155 Processing by SessionsController#create as HTML
 156   Parameters: {"utf8"=>"", "authenticity_token"=>"qXoaUrNmwViyyNWrH1qeXVMGzZur/qAMOjalzdVXuWar1kxp1jO98ySs04vYP2/4ogwFLMJ1FszTfLA0kWEjsA==", "session"=>{"user_id"=>"root", "password"=>"[FILTERED]"}, "button"=>""}
 157   User Load (0.6ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'root' AND `users`.`password_digest` = '123' LIMIT 1
 158 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"qXoaUrNmwViyyNWrH1qeXVMGzZur/qAMOjalzdVXuWar1kxp1jO98ySs04vYP2/4ogwFLMJ1FszTfLA0kWEjsA==", "session"=><ActionController::Parameters {"user_id"=>"root", "password"=>"123"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 159 #<User name: "root", password_digest: "123", created_at: "2017-03-30 02:47:33", updated_at: "2017-03-30 02:47:33", user_id: 2, Admin: "0", id: nil>
 160    (0.6ms)  SELECT COUNT(*) FROM `users`
 161   User Load (0.5ms)  SELECT  `users`.* FROM `users` LIMIT 1
 162 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 163   Rendering text template
 164   Rendered text template (0.0ms)
 165 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.7ms)
 166 
 167 
 168 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:11:03 +0800
 169 Processing by SessionsController#create as HTML
 170   Parameters: {"utf8"=>"", "authenticity_token"=>"qXoaUrNmwViyyNWrH1qeXVMGzZur/qAMOjalzdVXuWar1kxp1jO98ySs04vYP2/4ogwFLMJ1FszTfLA0kWEjsA==", "session"=>{"user_id"=>"root", "password"=>"[FILTERED]"}, "button"=>""}
 171   User Load (0.7ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'root' AND `users`.`password_digest` = '123' LIMIT 1
 172 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"qXoaUrNmwViyyNWrH1qeXVMGzZur/qAMOjalzdVXuWar1kxp1jO98ySs04vYP2/4ogwFLMJ1FszTfLA0kWEjsA==", "session"=><ActionController::Parameters {"user_id"=>"root", "password"=>"123"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 173 #<User name: "root", password_digest: "123", created_at: "2017-03-30 02:47:33", updated_at: "2017-03-30 02:47:33", user_id: 2, Admin: "0", id: nil>
 174    (0.5ms)  SELECT COUNT(*) FROM `users`
 175   User Load (0.6ms)  SELECT  `users`.* FROM `users` LIMIT 1
 176 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 177   Rendering text template
 178   Rendered text template (0.0ms)
 179 Completed 200 OK in 10ms (Views: 1.0ms | ActiveRecord: 1.8ms)
 180 
 181 
 182 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:11:14 +0800
 183 Processing by SessionsController#create as HTML
 184   Parameters: {"utf8"=>"", "authenticity_token"=>"qXoaUrNmwViyyNWrH1qeXVMGzZur/qAMOjalzdVXuWar1kxp1jO98ySs04vYP2/4ogwFLMJ1FszTfLA0kWEjsA==", "session"=>{"user_id"=>"day", "password"=>"[FILTERED]"}, "button"=>""}
 185   User Load (0.6ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'day' AND `users`.`password_digest` = '1111' LIMIT 1
 186 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"qXoaUrNmwViyyNWrH1qeXVMGzZur/qAMOjalzdVXuWar1kxp1jO98ySs04vYP2/4ogwFLMJ1FszTfLA0kWEjsA==", "session"=><ActionController::Parameters {"user_id"=>"day", "password"=>"1111"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 187 #<User name: "day", password_digest: "1111", created_at: "2017-04-01 16:19:41", updated_at: "2017-04-01 16:19:44", user_id: 3, Admin: "0", id: nil>
 188    (0.4ms)  SELECT COUNT(*) FROM `users`
 189   User Load (0.3ms)  SELECT  `users`.* FROM `users` LIMIT 1
 190 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 191   Rendering text template
 192   Rendered text template (0.1ms)
 193 Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 1.3ms)
 194 
 195 
 196 Started GET "/sessions/create" for 127.0.0.1 at 2017-04-06 11:11:29 +0800
 197   
 198 ActionController::RoutingError (No route matches [GET] "/sessions/create"):
 199   
 200 actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
 201 web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app'
 202 web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call'
 203 web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch'
 204 web-console (3.4.0) lib/web_console/middleware.rb:18:in `call'
 205 actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
 206 railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app'
 207 railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call'
 208 activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged'
 209 activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged'
 210 activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged'
 211 railties (5.0.2) lib/rails/rack/logger.rb:24:in `call'
 212 sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call'
 213 actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call'
 214 rack (2.0.1) lib/rack/method_override.rb:22:in `call'
 215 rack (2.0.1) lib/rack/runtime.rb:22:in `call'
 216 activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
 217 actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call'
 218 actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call'
 219 rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
 220 railties (5.0.2) lib/rails/engine.rb:522:in `call'
 221 puma (3.8.2) lib/puma/configuration.rb:224:in `call'
 222 puma (3.8.2) lib/puma/server.rb:600:in `handle_request'
 223 puma (3.8.2) lib/puma/server.rb:435:in `process_client'
 224 puma (3.8.2) lib/puma/server.rb:299:in `block in run'
 225 puma (3.8.2) lib/puma/thread_pool.rb:120:in `call'
 226 puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
 227   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
 228   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 229   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms)
 230   Rendered collection of /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [22 times] (7.4ms)
 231   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.0ms)
 232   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 233   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
 234   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (43.7ms)
 235 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:11:39 +0800
 236 Processing by SessionsController#create as HTML
 237   Parameters: {"utf8"=>"", "authenticity_token"=>"qXoaUrNmwViyyNWrH1qeXVMGzZur/qAMOjalzdVXuWar1kxp1jO98ySs04vYP2/4ogwFLMJ1FszTfLA0kWEjsA==", "session"=>{"user_id"=>"day", "password"=>"[FILTERED]"}, "button"=>""}
 238   User Load (0.7ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'day' AND `users`.`password_digest` = '1111' LIMIT 1
 239 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"qXoaUrNmwViyyNWrH1qeXVMGzZur/qAMOjalzdVXuWar1kxp1jO98ySs04vYP2/4ogwFLMJ1FszTfLA0kWEjsA==", "session"=><ActionController::Parameters {"user_id"=>"day", "password"=>"1111"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 240 #<User name: "day", password_digest: "1111", created_at: "2017-04-01 16:19:41", updated_at: "2017-04-01 16:19:44", user_id: 3, Admin: "0", id: nil>
 241    (0.5ms)  SELECT COUNT(*) FROM `users`
 242   User Load (0.3ms)  SELECT  `users`.* FROM `users` LIMIT 1
 243 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 244   Rendering text template
 245   Rendered text template (0.0ms)
 246 Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 1.6ms)
 247 
 248 
 249 Started GET "/sessions/create" for 127.0.0.1 at 2017-04-06 11:11:43 +0800
 250   
 251 ActionController::RoutingError (No route matches [GET] "/sessions/create"):
 252   
 253 actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
 254 web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app'
 255 web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call'
 256 web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch'
 257 web-console (3.4.0) lib/web_console/middleware.rb:18:in `call'
 258 actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
 259 railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app'
 260 railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call'
 261 activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged'
 262 activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged'
 263 activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged'
 264 railties (5.0.2) lib/rails/rack/logger.rb:24:in `call'
 265 sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call'
 266 actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call'
 267 rack (2.0.1) lib/rack/method_override.rb:22:in `call'
 268 rack (2.0.1) lib/rack/runtime.rb:22:in `call'
 269 activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
 270 actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call'
 271 actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call'
 272 rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
 273 railties (5.0.2) lib/rails/engine.rb:522:in `call'
 274 puma (3.8.2) lib/puma/configuration.rb:224:in `call'
 275 puma (3.8.2) lib/puma/server.rb:600:in `handle_request'
 276 puma (3.8.2) lib/puma/server.rb:435:in `process_client'
 277 puma (3.8.2) lib/puma/server.rb:299:in `block in run'
 278 puma (3.8.2) lib/puma/thread_pool.rb:120:in `call'
 279 puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
 280   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
 281   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 282   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms)
 283   Rendered collection of /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [22 times] (8.2ms)
 284   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms)
 285   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 286   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
 287   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (45.6ms)
 288 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:12:02 +0800
 289 Processing by ArticlesController#index as HTML
 290   Rendering articles/index.html.erb within layouts/application
 291   Article Load (0.7ms)  SELECT `articles`.* FROM `articles`
 292   Rendered articles/index.html.erb within layouts/application (5.4ms)
 293 Completed 200 OK in 79ms (Views: 75.8ms | ActiveRecord: 0.7ms)
 294 
 295 
 296 Started GET "/" for 127.0.0.1 at 2017-04-06 11:13:13 +0800
 297 Processing by SessionsController#new as HTML
 298   Rendering sessions/new.html.erb within layouts/application
 299   Rendered sessions/new.html.erb within layouts/application (1.8ms)
 300 Completed 200 OK in 50ms (Views: 48.4ms | ActiveRecord: 0.0ms)
 301 
 302 
 303 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:13:19 +0800
 304 Processing by SessionsController#create as HTML
 305   Parameters: {"utf8"=>"", "authenticity_token"=>"mJsDypWWsedrTn/owJik5xwJJofd50oh2mra8IeTYBaaN1Xx8MPNTP0qecgH/VVC7QPuMLRs/OEzIM8Jw6X6wA==", "session"=>{"user_id"=>"day", "password"=>"[FILTERED]"}, "button"=>""}
 306   User Load (0.7ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'day' AND `users`.`password_digest` = '1111' LIMIT 1
 307 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"mJsDypWWsedrTn/owJik5xwJJofd50oh2mra8IeTYBaaN1Xx8MPNTP0qecgH/VVC7QPuMLRs/OEzIM8Jw6X6wA==", "session"=><ActionController::Parameters {"user_id"=>"day", "password"=>"1111"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 308 #<User name: "day", password_digest: "1111", created_at: "2017-04-01 16:19:41", updated_at: "2017-04-01 16:19:44", user_id: 3, Admin: "0", id: nil>
 309    (0.4ms)  SELECT COUNT(*) FROM `users`
 310   User Load (0.3ms)  SELECT  `users`.* FROM `users` LIMIT 1
 311 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 312   Rendering text template
 313   Rendered text template (0.0ms)
 314 Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 1.9ms)
 315 
 316 
 317 Started GET "/sessions/create" for 127.0.0.1 at 2017-04-06 11:13:30 +0800
 318   
 319 ActionController::RoutingError (No route matches [GET] "/sessions/create"):
 320   
 321 actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:53:in `call'
 322 web-console (3.4.0) lib/web_console/middleware.rb:135:in `call_app'
 323 web-console (3.4.0) lib/web_console/middleware.rb:28:in `block in call'
 324 web-console (3.4.0) lib/web_console/middleware.rb:18:in `catch'
 325 web-console (3.4.0) lib/web_console/middleware.rb:18:in `call'
 326 actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
 327 railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app'
 328 railties (5.0.2) lib/rails/rack/logger.rb:24:in `block in call'
 329 activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `block in tagged'
 330 activesupport (5.0.2) lib/active_support/tagged_logging.rb:26:in `tagged'
 331 activesupport (5.0.2) lib/active_support/tagged_logging.rb:69:in `tagged'
 332 railties (5.0.2) lib/rails/rack/logger.rb:24:in `call'
 333 sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call'
 334 actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call'
 335 rack (2.0.1) lib/rack/method_override.rb:22:in `call'
 336 rack (2.0.1) lib/rack/runtime.rb:22:in `call'
 337 activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
 338 actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call'
 339 actionpack (5.0.2) lib/action_dispatch/middleware/static.rb:136:in `call'
 340 rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
 341 railties (5.0.2) lib/rails/engine.rb:522:in `call'
 342 puma (3.8.2) lib/puma/configuration.rb:224:in `call'
 343 puma (3.8.2) lib/puma/server.rb:600:in `handle_request'
 344 puma (3.8.2) lib/puma/server.rb:435:in `process_client'
 345 puma (3.8.2) lib/puma/server.rb:299:in `block in run'
 346 puma (3.8.2) lib/puma/thread_pool.rb:120:in `call'
 347 puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
 348   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout
 349   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 350   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms)
 351   Rendered collection of /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb [22 times] (9.1ms)
 352   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms)
 353   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 354   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
 355   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (44.6ms)
 356 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:19:29 +0800
 357 Processing by SessionsController#create as HTML
 358   Parameters: {"utf8"=>"", "authenticity_token"=>"mJsDypWWsedrTn/owJik5xwJJofd50oh2mra8IeTYBaaN1Xx8MPNTP0qecgH/VVC7QPuMLRs/OEzIM8Jw6X6wA==", "session"=>{"user_id"=>"day", "password"=>"[FILTERED]"}, "button"=>""}
 359   User Load (0.8ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'day' AND `users`.`password_digest` = '1111' LIMIT 1
 360 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"mJsDypWWsedrTn/owJik5xwJJofd50oh2mra8IeTYBaaN1Xx8MPNTP0qecgH/VVC7QPuMLRs/OEzIM8Jw6X6wA==", "session"=><ActionController::Parameters {"user_id"=>"day", "password"=>"1111"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 361 #<User name: "day", password_digest: "1111", created_at: "2017-04-01 16:19:41", updated_at: "2017-04-01 16:19:44", user_id: 3, Admin: "0", id: nil>
 362    (0.5ms)  SELECT COUNT(*) FROM `users`
 363   User Load (0.5ms)  SELECT  `users`.* FROM `users` LIMIT 1
 364 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 365   Rendering text template
 366   Rendered text template (0.0ms)
 367 Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 1.7ms)
 368 
 369 
 370 Started GET "/" for 127.0.0.1 at 2017-04-06 11:19:34 +0800
 371 Processing by SessionsController#new as HTML
 372   Rendering sessions/new.html.erb within layouts/application
 373   Rendered sessions/new.html.erb within layouts/application (5.5ms)
 374 Completed 200 OK in 60ms (Views: 57.2ms | ActiveRecord: 0.0ms)
 375 
 376 
 377 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:19:37 +0800
 378 Processing by SessionsController#create as HTML
 379   Parameters: {"utf8"=>"", "authenticity_token"=>"BWymonKVegCwb/fzWewsrikP5jdYxDJzBVVEpOvHQmkHwPCZF8AGqyYL8dOeid0L2AUugDFPhLPsH1Fdr/HYvw==", "session"=>{"user_id"=>"day", "password"=>"[FILTERED]"}, "button"=>""}
 380   User Load (0.6ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'day' AND `users`.`password_digest` = '1111' LIMIT 1
 381 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"BWymonKVegCwb/fzWewsrikP5jdYxDJzBVVEpOvHQmkHwPCZF8AGqyYL8dOeid0L2AUugDFPhLPsH1Fdr/HYvw==", "session"=><ActionController::Parameters {"user_id"=>"day", "password"=>"1111"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 382 #<User name: "day", password_digest: "1111", created_at: "2017-04-01 16:19:41", updated_at: "2017-04-01 16:19:44", user_id: 3, Admin: "0", id: nil>
 383    (0.4ms)  SELECT COUNT(*) FROM `users`
 384   User Load (0.3ms)  SELECT  `users`.* FROM `users` LIMIT 1
 385 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 386   Rendering text template
 387   Rendered text template (0.0ms)
 388 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.3ms)
 389 
 390 
 391 Started GET "/" for 127.0.0.1 at 2017-04-06 11:19:52 +0800
 392 Processing by SessionsController#new as HTML
 393   Rendering sessions/new.html.erb within layouts/application
 394   Rendered sessions/new.html.erb within layouts/application (2.2ms)
 395 Completed 200 OK in 64ms (Views: 62.6ms | ActiveRecord: 0.0ms)
 396 
 397 
 398 Started GET "/" for 127.0.0.1 at 2017-04-06 11:21:38 +0800
 399 Processing by SessionsController#new as HTML
 400   Rendering sessions/new.html.erb within layouts/application
 401   Rendered sessions/new.html.erb within layouts/application (3.1ms)
 402 Completed 200 OK in 72ms (Views: 70.0ms | ActiveRecord: 0.0ms)
 403 
 404 
 405 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:21:40 +0800
 406 Processing by SessionsController#create as HTML
 407   Parameters: {"utf8"=>"", "authenticity_token"=>"7ybkP+vaCxjCDqMKC7TgQjFChmOwmVmb5cgKYfrFEOHtirIEjo93s1RqpSrM0RHnwEhO1NkS71sMgh+YvvOKNw==", "session"=>{"user_id"=>"day", "password"=>"[FILTERED]"}, "button"=>""}
 408   User Load (0.8ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'day' AND `users`.`password_digest` = '1111' LIMIT 1
 409 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"7ybkP+vaCxjCDqMKC7TgQjFChmOwmVmb5cgKYfrFEOHtirIEjo93s1RqpSrM0RHnwEhO1NkS71sMgh+YvvOKNw==", "session"=><ActionController::Parameters {"user_id"=>"day", "password"=>"1111"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 410 #<User name: "day", password_digest: "1111", created_at: "2017-04-01 16:19:41", updated_at: "2017-04-01 16:19:44", user_id: 3, Admin: "0", id: nil>
 411    (0.4ms)  SELECT COUNT(*) FROM `users`
 412   User Load (0.4ms)  SELECT  `users`.* FROM `users` LIMIT 1
 413 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 414   Rendering text template
 415   Rendered text template (0.0ms)
 416 Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.6ms)
 417 
 418 
 419 Started GET "/" for 127.0.0.1 at 2017-04-06 11:28:14 +0800
 420 Processing by SessionsController#new as HTML
 421   Rendering sessions/new.html.erb within layouts/application
 422   Rendered sessions/new.html.erb within layouts/application (2.0ms)
 423 Completed 200 OK in 48ms (Views: 46.7ms | ActiveRecord: 0.0ms)
 424 
 425 
 426 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:28:16 +0800
 427 Processing by SessionsController#create as HTML
 428   Parameters: {"utf8"=>"", "authenticity_token"=>"uJc/ZfCGcEXqVgBSOeJyNXfX1sFvD0JBQFVmQa5Txx66O2leldMM7nwyBnL+h4OQht0edgaE9IGpH3O46mVdyA==", "session"=>{"user_id"=>"day", "password"=>"[FILTERED]"}, "button"=>""}
 429   User Load (0.6ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'day' AND `users`.`password_digest` = '1111' LIMIT 1
 430 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"uJc/ZfCGcEXqVgBSOeJyNXfX1sFvD0JBQFVmQa5Txx66O2leldMM7nwyBnL+h4OQht0edgaE9IGpH3O46mVdyA==", "session"=><ActionController::Parameters {"user_id"=>"day", "password"=>"1111"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 431 #<User name: "day", password_digest: "1111", created_at: "2017-04-01 16:19:41", updated_at: "2017-04-01 16:19:44", user_id: 3, Admin: "0", id: nil>
 432    (0.5ms)  SELECT COUNT(*) FROM `users`
 433   User Load (0.5ms)  SELECT  `users`.* FROM `users` LIMIT 1
 434 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 435   Rendering text template
 436   Rendered text template (0.0ms)
 437 Completed 500 Internal Server Error in 102ms (Views: 0.6ms | ActiveRecord: 4.2ms)
 438 
 439 
 440   
 441 NameError (undefined local variable or method `new_session_path' for #<SessionsController:0x007fb5fc1e2788>):
 442   
 443 app/controllers/sessions_controller.rb:12:in `create'
 444   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
 445   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 446   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (7.3ms)
 447   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 448   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
 449   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 450   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms)
 451   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (106.1ms)
 452 Started GET "/" for 127.0.0.1 at 2017-04-06 11:29:03 +0800
 453 Processing by SessionsController#new as HTML
 454   Rendering sessions/new.html.erb within layouts/application
 455   Rendered sessions/new.html.erb within layouts/application (4.0ms)
 456 Completed 200 OK in 73ms (Views: 70.7ms | ActiveRecord: 0.0ms)
 457 
 458 
 459 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:29:06 +0800
 460 Processing by SessionsController#create as HTML
 461   Parameters: {"utf8"=>"", "authenticity_token"=>"dgzeejLpOp0r8Cu4Yko+hn79oYkl5iaY1UUsVcBvweJ0oIhBV7xGNr2ULZilL88jj/dpPkxtkFg8DzmshFlbNA==", "session"=>{"user_id"=>"day", "password"=>"[FILTERED]"}, "button"=>""}
 462   User Load (0.5ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'day' AND `users`.`password_digest` = '1111' LIMIT 1
 463 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"dgzeejLpOp0r8Cu4Yko+hn79oYkl5iaY1UUsVcBvweJ0oIhBV7xGNr2ULZilL88jj/dpPkxtkFg8DzmshFlbNA==", "session"=><ActionController::Parameters {"user_id"=>"day", "password"=>"1111"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 464 #<User name: "day", password_digest: "1111", created_at: "2017-04-01 16:19:41", updated_at: "2017-04-01 16:19:44", user_id: 3, Admin: "0", id: nil>
 465    (0.8ms)  SELECT COUNT(*) FROM `users`
 466   User Load (0.7ms)  SELECT  `users`.* FROM `users` LIMIT 1
 467 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 468   Rendering text template
 469   Rendered text template (0.0ms)
 470 Redirected to 
 471 Completed 500 Internal Server Error in 31ms (Views: 0.7ms | ActiveRecord: 3.5ms)
 472 
 473 
 474   
 475 AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".):
 476   
 477 app/controllers/sessions_controller.rb:12:in `create'
 478   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
 479   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 480   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (7.4ms)
 481   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 482   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
 483   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 484   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.7ms)
 485   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (32.3ms)
 486 Started GET "/" for 127.0.0.1 at 2017-04-06 11:29:58 +0800
 487 Processing by SessionsController#new as HTML
 488   Rendering sessions/new.html.erb within layouts/application
 489   Rendered sessions/new.html.erb within layouts/application (2.8ms)
 490 Completed 200 OK in 49ms (Views: 47.8ms | ActiveRecord: 0.0ms)
 491 
 492 
 493 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:29:59 +0800
 494 Processing by SessionsController#create as HTML
 495   Parameters: {"utf8"=>"", "authenticity_token"=>"jpHFfcoJqAnpCf5aNqM5rLqP0ggGtokFzG+F20NuO9uMPZNGr1zUon9t+HrxxsgJS4Uav289P8UlJZAiB1ihDQ==", "session"=>{"user_id"=>"day", "password"=>"[FILTERED]"}, "button"=>""}
 496   User Load (0.6ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'day' AND `users`.`password_digest` = '1111' LIMIT 1
 497 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"jpHFfcoJqAnpCf5aNqM5rLqP0ggGtokFzG+F20NuO9uMPZNGr1zUon9t+HrxxsgJS4Uav289P8UlJZAiB1ihDQ==", "session"=><ActionController::Parameters {"user_id"=>"day", "password"=>"1111"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 498 #<User name: "day", password_digest: "1111", created_at: "2017-04-01 16:19:41", updated_at: "2017-04-01 16:19:44", user_id: 3, Admin: "0", id: nil>
 499    (0.4ms)  SELECT COUNT(*) FROM `users`
 500   User Load (0.3ms)  SELECT  `users`.* FROM `users` LIMIT 1
 501 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 502   Rendering text template
 503   Rendered text template (0.0ms)
 504 Completed 500 Internal Server Error in 98ms (Views: 0.5ms | ActiveRecord: 1.9ms)
 505 
 506 
 507   
 508 NameError (undefined local variable or method `home_path' for #<SessionsController:0x007fb604088dd0>):
 509   
 510 app/controllers/sessions_controller.rb:12:in `create'
 511   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
 512   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 513   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.8ms)
 514   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 515   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms)
 516   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 517   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.9ms)
 518   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (92.8ms)
 519 Started GET "/" for 127.0.0.1 at 2017-04-06 11:32:04 +0800
 520 Processing by HomeController#index as HTML
 521   Rendering home/index.html.erb within layouts/application
 522   Rendered home/index.html.erb within layouts/application (0.6ms)
 523 Completed 200 OK in 38ms (Views: 37.0ms | ActiveRecord: 0.0ms)
 524 
 525 
 526 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:32:06 +0800
 527 Processing by ArticlesController#index as HTML
 528   Rendering articles/index.html.erb within layouts/application
 529   Article Load (0.5ms)  SELECT `articles`.* FROM `articles`
 530   Rendered articles/index.html.erb within layouts/application (16.1ms)
 531 Completed 200 OK in 71ms (Views: 60.4ms | ActiveRecord: 2.8ms)
 532 
 533 
 534 Started GET "/articles/new" for 127.0.0.1 at 2017-04-06 11:32:16 +0800
 535 Processing by ArticlesController#new as HTML
 536   Rendering articles/new.html.erb within layouts/application
 537   Rendered articles/_form.html.erb (7.0ms)
 538   Rendered articles/new.html.erb within layouts/application (10.0ms)
 539 Completed 200 OK in 70ms (Views: 68.0ms | ActiveRecord: 0.0ms)
 540 
 541 
 542 Started POST "/articles" for 127.0.0.1 at 2017-04-06 11:32:27 +0800
 543 Processing by ArticlesController#create as HTML
 544   Parameters: {"utf8"=>"", "authenticity_token"=>"92fZeSEJtXsU4KpyQFosQYmVfHpn6I478Iu+cSIFLdqJGniF6JpKXD5B9eKiXhZiQ65/1Ya3PBEpV/2ih4hNnA==", "article"=>{"text"=>"添加评论"}, "commit"=>"Create Article"}
 545    (0.3ms)  BEGIN
 546    (0.3ms)  ROLLBACK
 547 Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.6ms)
 548 
 549 
 550   
 551 NoMethodError (undefined method `title' for #<Article:0x007fb6041d3618>):
 552   
 553 app/controllers/articles_controller.rb:21:in `block in create'
 554 app/controllers/articles_controller.rb:20:in `create'
 555   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
 556   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 557   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (10.1ms)
 558   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 559   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms)
 560   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 561   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms)
 562   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (35.1ms)
 563 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:34:03 +0800
 564   
 565 SyntaxError (/home/caopu/demo/app/controllers/articles_controller.rb:62: syntax error, unexpected end-of-input, expecting keyword_end):
 566   
 567 app/controllers/articles_controller.rb:62: syntax error, unexpected end-of-input, expecting keyword_end
 568   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
 569   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 570   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (6.1ms)
 571   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 572   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms)
 573   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 574   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
 575   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (31.5ms)
 576 Started GET "/" for 127.0.0.1 at 2017-04-06 11:34:06 +0800
 577 Processing by HomeController#index as HTML
 578   Rendering home/index.html.erb within layouts/application
 579   Rendered home/index.html.erb within layouts/application (0.8ms)
 580 Completed 200 OK in 49ms (Views: 47.2ms | ActiveRecord: 0.0ms)
 581 
 582 
 583 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:34:08 +0800
 584   
 585 SyntaxError (/home/caopu/demo/app/controllers/articles_controller.rb:62: syntax error, unexpected end-of-input, expecting keyword_end):
 586   
 587 app/controllers/articles_controller.rb:62: syntax error, unexpected end-of-input, expecting keyword_end
 588   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
 589   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 590   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (5.2ms)
 591   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 592   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms)
 593   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 594   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
 595   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (28.6ms)
 596 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:34:19 +0800
 597 Processing by ArticlesController#index as HTML
 598   Rendering articles/index.html.erb within layouts/application
 599   Article Load (0.4ms)  SELECT `articles`.* FROM `articles`
 600   Rendered articles/index.html.erb within layouts/application (12.8ms)
 601 Completed 200 OK in 59ms (Views: 51.8ms | ActiveRecord: 2.8ms)
 602 
 603 
 604 Started GET "/articles/3" for 127.0.0.1 at 2017-04-06 11:34:21 +0800
 605 Processing by ArticlesController#show as HTML
 606   Parameters: {"id"=>"3"}
 607   Article Load (0.9ms)  SELECT  `articles`.* FROM `articles` WHERE `articles`.`id` = 3 LIMIT 1
 608   Rendering articles/show.html.erb within layouts/application
 609   Rendered articles/show.html.erb within layouts/application (1.7ms)
 610 Completed 200 OK in 60ms (Views: 55.0ms | ActiveRecord: 0.9ms)
 611 
 612 
 613 Started GET "/" for 127.0.0.1 at 2017-04-06 11:34:47 +0800
 614 Processing by HomeController#index as HTML
 615   Rendering home/index.html.erb within layouts/application
 616   Rendered home/index.html.erb within layouts/application (1.1ms)
 617 Completed 200 OK in 49ms (Views: 47.5ms | ActiveRecord: 0.0ms)
 618 
 619 
 620 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:34:49 +0800
 621 Processing by ArticlesController#index as HTML
 622   Rendering articles/index.html.erb within layouts/application
 623   Article Load (0.5ms)  SELECT `articles`.* FROM `articles`
 624   Rendered articles/index.html.erb within layouts/application (3.4ms)
 625 Completed 200 OK in 57ms (Views: 55.6ms | ActiveRecord: 0.5ms)
 626 
 627 
 628 Started GET "/" for 127.0.0.1 at 2017-04-06 11:44:31 +0800
 629 Processing by HomeController#index as HTML
 630   Rendering home/index.html.erb within layouts/application
 631   Rendered home/index.html.erb within layouts/application (0.6ms)
 632 Completed 200 OK in 57ms (Views: 55.5ms | ActiveRecord: 0.0ms)
 633 
 634 
 635 Started GET "/sessions/new" for 127.0.0.1 at 2017-04-06 11:44:37 +0800
 636 Processing by SessionsController#new as HTML
 637   Rendering sessions/new.html.erb within layouts/application
 638   Rendered sessions/new.html.erb within layouts/application (3.1ms)
 639 Completed 200 OK in 47ms (Views: 45.5ms | ActiveRecord: 0.0ms)
 640 
 641 
 642 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:44:41 +0800
 643 Processing by SessionsController#create as HTML
 644   Parameters: {"utf8"=>"", "authenticity_token"=>"APgafTyCrOVUa4hIPUW51bz11H7K7zyT42QV02l2jckCVExGWdfQTsIPjmj6IEhwTf8cyaNkilMKLgAqLUAXHw==", "session"=>{"user_id"=>"day", "password"=>"[FILTERED]"}, "button"=>""}
 645   User Load (0.6ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'day' AND `users`.`password_digest` = '1111' LIMIT 1
 646 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"APgafTyCrOVUa4hIPUW51bz11H7K7zyT42QV02l2jckCVExGWdfQTsIPjmj6IEhwTf8cyaNkilMKLgAqLUAXHw==", "session"=><ActionController::Parameters {"user_id"=>"day", "password"=>"1111"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 647 #<User name: "day", password_digest: "1111", created_at: "2017-04-01 16:19:41", updated_at: "2017-04-01 16:19:44", user_id: 3, Admin: "0", id: nil>
 648    (0.5ms)  SELECT COUNT(*) FROM `users`
 649   User Load (0.5ms)  SELECT  `users`.* FROM `users` LIMIT 1
 650 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 651   Rendering text template
 652   Rendered text template (0.0ms)
 653 Redirected to 
 654 Completed 500 Internal Server Error in 29ms (Views: 1.2ms | ActiveRecord: 4.0ms)
 655 
 656 
 657   
 658 AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".):
 659   
 660 app/controllers/sessions_controller.rb:12:in `create'
 661   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
 662   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 663   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (6.9ms)
 664   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 665   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (14.7ms)
 666   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 667   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.7ms)
 668   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (45.0ms)
 669 Started POST "/sessions/create" for 127.0.0.1 at 2017-04-06 11:49:15 +0800
 670 Processing by SessionsController#create as HTML
 671   Parameters: {"utf8"=>"", "authenticity_token"=>"APgafTyCrOVUa4hIPUW51bz11H7K7zyT42QV02l2jckCVExGWdfQTsIPjmj6IEhwTf8cyaNkilMKLgAqLUAXHw==", "session"=>{"user_id"=>"day", "password"=>"[FILTERED]"}, "button"=>""}
 672   User Load (0.7ms)  SELECT  `users`.* FROM `users` WHERE `users`.`name` = 'day' AND `users`.`password_digest` = '1111' LIMIT 1
 673 <ActionController::Parameters {"utf8"=>"", "authenticity_token"=>"APgafTyCrOVUa4hIPUW51bz11H7K7zyT42QV02l2jckCVExGWdfQTsIPjmj6IEhwTf8cyaNkilMKLgAqLUAXHw==", "session"=><ActionController::Parameters {"user_id"=>"day", "password"=>"1111"} permitted: false>, "button"=>"", "controller"=>"sessions", "action"=>"create"} permitted: false>
 674 #<User name: "day", password_digest: "1111", created_at: "2017-04-01 16:19:41", updated_at: "2017-04-01 16:19:44", user_id: 3, Admin: "0", id: nil>
 675    (0.4ms)  SELECT COUNT(*) FROM `users`
 676   User Load (0.3ms)  SELECT  `users`.* FROM `users` LIMIT 1
 677 4,#<User name: "admin", password_digest: "123456", created_at: "2017-03-29 10:33:54", updated_at: "2017-03-29 10:33:54", user_id: 1, Admin: "1", id: nil>
 678   Rendering text template
 679   Rendered text template (0.0ms)
 680 Redirected to 
 681 Completed 500 Internal Server Error in 9ms (Views: 0.8ms | ActiveRecord: 1.4ms)
 682 
 683 
 684   
 685 AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".):
 686   
 687 app/controllers/sessions_controller.rb:12:in `create'
 688   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
 689   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 690   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (7.1ms)
 691   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 692   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms)
 693   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 694   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
 695   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (34.0ms)
 696 Started GET "/home/index" for 127.0.0.1 at 2017-04-06 11:49:26 +0800
 697 Processing by HomeController#index as HTML
 698   Rendering home/index.html.erb within layouts/application
 699   Rendered home/index.html.erb within layouts/application (1.1ms)
 700 Completed 200 OK in 56ms (Views: 54.2ms | ActiveRecord: 0.0ms)
 701 
 702 
 703 Started GET "/home/index" for 127.0.0.1 at 2017-04-06 11:52:11 +0800
 704 Processing by HomeController#index as HTML
 705   Rendering home/index.html.erb within layouts/application
 706   Rendered home/index.html.erb within layouts/application (2.4ms)
 707 Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
 708 
 709 
 710   
 711 ActionView::Template::Error (undefined method `each' for nil:NilClass):
 712     11:     <th colspan="3"></th>
 713     12:   </tr>
 714     13:  
 715     14:   <% @articles.each do |article| %>
 716     15:     <tr>
 717     16:       <td><%= article.title %></td>
 718     17:       <td><%= article.text %></td>
 719   
 720 app/views/home/index.html.erb:14:in `_app_views_home_index_html_erb__260578400703075103_70209944998840'
 721   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout
 722   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 723   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (14.2ms)
 724   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 725   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.7ms)
 726   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 727   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
 728   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (45.8ms)
 729 Started GET "/home/index" for 127.0.0.1 at 2017-04-06 11:52:43 +0800
 730 Processing by HomeController#index as HTML
 731   Rendering home/index.html.erb within layouts/application
 732   Rendered home/index.html.erb within layouts/application (2.0ms)
 733 Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)
 734 
 735 
 736   
 737 SyntaxError (/home/caopu/demo/app/views/home/index.html.erb:26: syntax error, unexpected keyword_ensure, expecting end-of-input):
 738   
 739 app/views/home/index.html.erb:26: syntax error, unexpected keyword_ensure, expecting end-of-input
 740   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
 741   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 742   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (9.5ms)
 743   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 744   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.9ms)
 745   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 746   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.8ms)
 747   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (37.5ms)
 748 Started GET "/home/index" for 127.0.0.1 at 2017-04-06 11:53:03 +0800
 749 Processing by HomeController#index as HTML
 750   Rendering home/index.html.erb within layouts/application
 751   Rendered home/index.html.erb within layouts/application (108.0ms)
 752 Completed 500 Internal Server Error in 113ms (ActiveRecord: 0.0ms)
 753 
 754 
 755   
 756 ActionView::Template::Error (undefined local variable or method `article' for #<#<Class:0x007fb5fc2e4cd0>:0x007fb600012c38>):
 757     13:  
 758     14:   
 759     15:     <tr>
 760     16:       <td><%= article.title %></td>
 761     17:       <td><%= article.text %></td>
 762     18:       <td><%= link_to 'Show', article_path(article) %></td>
 763     19:       <td><%= link_to 'Edit', edit_article_path(article) %></td>
 764   
 765 app/views/home/index.html.erb:16:in `_app_views_home_index_html_erb__260578400703075103_70209830427840'
 766   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout
 767   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 768   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (14.5ms)
 769   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 770   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (9.6ms)
 771   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 772   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (12.5ms)
 773   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (57.0ms)
 774 Started GET "/home/index" for 127.0.0.1 at 2017-04-06 11:53:19 +0800
 775 Processing by HomeController#index as HTML
 776   Rendering home/index.html.erb within layouts/application
 777   Rendered home/index.html.erb within layouts/application (187.8ms)
 778 Completed 500 Internal Server Error in 192ms (ActiveRecord: 0.0ms)
 779 
 780 
 781   
 782 ActionView::Template::Error (undefined local variable or method `article' for #<#<Class:0x007fb5fc2e4cd0>:0x007fb60dc54638>):
 783     14:   
 784     15:     <tr>
 785     16:       
 786     17:       <td><%= link_to 'Show', article_path(article) %></td>
 787     18:       <td><%= link_to 'Edit', edit_article_path(article) %></td>
 788     19:       <td><%= link_to 'Destroy', article_path(article),
 789     20:               method: :delete,
 790   
 791 app/views/home/index.html.erb:17:in `_app_views_home_index_html_erb__260578400703075103_70209945907100'
 792   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout
 793   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 794   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (7.6ms)
 795   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 796   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
 797   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 798   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
 799   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (31.7ms)
 800 Started GET "/home/index" for 127.0.0.1 at 2017-04-06 11:54:18 +0800
 801 Processing by HomeController#index as HTML
 802   Rendering home/index.html.erb within layouts/application
 803   Rendered home/index.html.erb within layouts/application (115.4ms)
 804 Completed 500 Internal Server Error in 119ms (ActiveRecord: 0.0ms)
 805 
 806 
 807   
 808 ActionView::Template::Error (undefined local variable or method `article' for #<#<Class:0x007fb5fc2e4cd0>:0x007fb5fc039e90>):
 809      7: 
 810      8:       
 811      9:       <td><%= link_to 'Show', new_article_path %></td>
 812     10:       <td><%= link_to 'Edit', edit_article_path(article) %></td>
 813     11:       <td><%= link_to 'Destroy', article_path(article),
 814     12:               method: :delete,
 815     13:               data: { confirm: 'Are you sure?' } %></td>
 816   
 817 app/views/home/index.html.erb:10:in `_app_views_home_index_html_erb__260578400703075103_70209796953180'
 818   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout
 819   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 820   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (9.9ms)
 821   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 822   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (5.3ms)
 823   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 824   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
 825   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (36.4ms)
 826 Started GET "/home/index" for 127.0.0.1 at 2017-04-06 11:54:41 +0800
 827 Processing by HomeController#index as HTML
 828   Rendering home/index.html.erb within layouts/application
 829   Rendered home/index.html.erb within layouts/application (1.7ms)
 830 Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)
 831 
 832 
 833   
 834 SyntaxError (/home/caopu/demo/app/views/home/index.html.erb:12: syntax error, unexpected ':', expecting ')'
 835               method: :delete,
 836                      ^):
 837   
 838 app/views/home/index.html.erb:12: syntax error, unexpected ':', expecting ')'
 839   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
 840   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 841   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (12.4ms)
 842   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 843   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.2ms)
 844   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 845   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
 846   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (39.1ms)
 847 Started GET "/home/index" for 127.0.0.1 at 2017-04-06 11:54:53 +0800
 848 Processing by HomeController#index as HTML
 849   Rendering home/index.html.erb within layouts/application
 850   Rendered home/index.html.erb within layouts/application (1.6ms)
 851 Completed 200 OK in 53ms (Views: 50.2ms | ActiveRecord: 0.0ms)
 852 
 853 
 854 Started GET "/articles/new" for 127.0.0.1 at 2017-04-06 11:55:00 +0800
 855 Processing by ArticlesController#new as HTML
 856   Rendering articles/new.html.erb within layouts/application
 857   Rendered articles/_form.html.erb (3.1ms)
 858   Rendered articles/new.html.erb within layouts/application (5.0ms)
 859 Completed 200 OK in 88ms (Views: 64.1ms | ActiveRecord: 2.1ms)
 860 
 861 
 862 Started POST "/articles" for 127.0.0.1 at 2017-04-06 11:55:03 +0800
 863 Processing by ArticlesController#create as HTML
 864   Parameters: {"utf8"=>"", "authenticity_token"=>"7/6klJ+ftJwnRKl+O3xMsDEpmtA76TPHb4Dz1v2CJZKRgwVoVgxLuw3l9u7ZeHaT+xKZf9q2ge22XLAFWA9F1A==", "article"=>{"text"=>""}, "commit"=>"Create Article"}
 865    (0.6ms)  BEGIN
 866    (0.3ms)  ROLLBACK
 867 Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.9ms)
 868 
 869 
 870   
 871 NoMethodError (undefined method `title' for #<Article:0x007fb5fc1407f8>):
 872   
 873 app/controllers/articles_controller.rb:21:in `block in create'
 874 app/controllers/articles_controller.rb:20:in `create'
 875   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
 876   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 877   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (10.7ms)
 878   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 879   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.6ms)
 880   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 881   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
 882   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (38.3ms)
 883 Started GET "/home/index" for 127.0.0.1 at 2017-04-06 11:55:07 +0800
 884 Processing by HomeController#index as HTML
 885   Rendering home/index.html.erb within layouts/application
 886   Rendered home/index.html.erb within layouts/application (1.3ms)
 887 Completed 200 OK in 48ms (Views: 46.7ms | ActiveRecord: 0.0ms)
 888 
 889 
 890 Started GET "/home/index" for 127.0.0.1 at 2017-04-06 11:55:28 +0800
 891 Processing by HomeController#index as HTML
 892   Rendering home/index.html.erb within layouts/application
 893   Rendered home/index.html.erb within layouts/application (2.0ms)
 894 Completed 200 OK in 58ms (Views: 56.3ms | ActiveRecord: 0.0ms)
 895 
 896 
 897 Started GET "/articles/new" for 127.0.0.1 at 2017-04-06 11:55:37 +0800
 898 Processing by ArticlesController#new as HTML
 899   Rendering articles/new.html.erb within layouts/application
 900   Rendered articles/_form.html.erb (3.4ms)
 901   Rendered articles/new.html.erb within layouts/application (5.5ms)
 902 Completed 200 OK in 62ms (Views: 60.3ms | ActiveRecord: 0.0ms)
 903 
 904 
 905 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:55:39 +0800
 906 Processing by ArticlesController#index as HTML
 907   Rendering articles/index.html.erb within layouts/application
 908   Article Load (0.7ms)  SELECT `articles`.* FROM `articles`
 909   Rendered articles/index.html.erb within layouts/application (5.6ms)
 910 Completed 200 OK in 68ms (Views: 65.1ms | ActiveRecord: 0.7ms)
 911 
 912 
 913 Started GET "/articles/3" for 127.0.0.1 at 2017-04-06 11:55:45 +0800
 914 Processing by ArticlesController#show as HTML
 915   Parameters: {"id"=>"3"}
 916   Article Load (0.6ms)  SELECT  `articles`.* FROM `articles` WHERE `articles`.`id` = 3 LIMIT 1
 917   Rendering articles/show.html.erb within layouts/application
 918   Rendered articles/show.html.erb within layouts/application (1.2ms)
 919 Completed 200 OK in 59ms (Views: 55.6ms | ActiveRecord: 0.6ms)
 920 
 921 
 922 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:55:48 +0800
 923 Processing by ArticlesController#index as HTML
 924   Rendering articles/index.html.erb within layouts/application
 925   Article Load (0.8ms)  SELECT `articles`.* FROM `articles`
 926   Rendered articles/index.html.erb within layouts/application (5.5ms)
 927 Completed 200 OK in 76ms (Views: 73.3ms | ActiveRecord: 0.8ms)
 928 
 929 
 930 Started GET "/articles/new" for 127.0.0.1 at 2017-04-06 11:55:50 +0800
 931 Processing by ArticlesController#new as HTML
 932   Rendering articles/new.html.erb within layouts/application
 933   Rendered articles/_form.html.erb (5.7ms)
 934   Rendered articles/new.html.erb within layouts/application (8.5ms)
 935 Completed 200 OK in 61ms (Views: 58.7ms | ActiveRecord: 0.0ms)
 936 
 937 
 938 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:55:51 +0800
 939 Processing by ArticlesController#index as HTML
 940   Rendering articles/index.html.erb within layouts/application
 941   Article Load (0.6ms)  SELECT `articles`.* FROM `articles`
 942   Rendered articles/index.html.erb within layouts/application (3.6ms)
 943 Completed 200 OK in 54ms (Views: 51.1ms | ActiveRecord: 0.6ms)
 944 
 945 
 946 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:55:59 +0800
 947 Processing by ArticlesController#index as HTML
 948   Rendering articles/index.html.erb within layouts/application
 949   Article Load (0.6ms)  SELECT `articles`.* FROM `articles`
 950   Rendered articles/index.html.erb within layouts/application (5.4ms)
 951 Completed 200 OK in 53ms (Views: 50.7ms | ActiveRecord: 0.6ms)
 952 
 953 
 954 Started GET "/" for 127.0.0.1 at 2017-04-06 11:56:03 +0800
 955 Processing by HomeController#index as HTML
 956   Rendering home/index.html.erb within layouts/application
 957   Rendered home/index.html.erb within layouts/application (1.4ms)
 958 Completed 200 OK in 50ms (Views: 47.5ms | ActiveRecord: 0.0ms)
 959 
 960 
 961 Started GET "/articles" for 127.0.0.1 at 2017-04-06 11:56:14 +0800
 962 Processing by ArticlesController#index as HTML
 963   Rendering articles/index.html.erb within layouts/application
 964   Article Load (0.6ms)  SELECT `articles`.* FROM `articles`
 965   Rendered articles/index.html.erb within layouts/application (4.1ms)
 966 Completed 200 OK in 60ms (Views: 58.0ms | ActiveRecord: 0.6ms)
 967 
 968 
 969 Started GET "/articles" for 127.0.0.1 at 2017-04-06 12:01:03 +0800
 970 Processing by ArticlesController#index as HTML
 971   Rendering articles/index.html.erb within layouts/application
 972   Article Load (0.8ms)  SELECT `articles`.* FROM `articles`
 973   Rendered articles/index.html.erb within layouts/application (6.2ms)
 974 Completed 200 OK in 76ms (Views: 72.9ms | ActiveRecord: 0.8ms)
 975 
 976 
 977 Started GET "/articles" for 127.0.0.1 at 2017-04-06 12:01:03 +0800
 978 Processing by ArticlesController#index as HTML
 979   Rendering articles/index.html.erb within layouts/application
 980   Article Load (1.0ms)  SELECT `articles`.* FROM `articles`
 981   Rendered articles/index.html.erb within layouts/application (4.5ms)
 982 Completed 200 OK in 47ms (Views: 44.6ms | ActiveRecord: 1.0ms)
 983 
 984 
 985 Started GET "/articles/new" for 127.0.0.1 at 2017-04-06 12:01:05 +0800
 986 Processing by ArticlesController#new as HTML
 987   Rendering articles/new.html.erb within layouts/application
 988   Rendered articles/_form.html.erb (3.2ms)
 989   Rendered articles/new.html.erb within layouts/application (4.8ms)
 990 Completed 200 OK in 48ms (Views: 46.8ms | ActiveRecord: 0.0ms)
 991 
 992 
 993 Started POST "/articles" for 127.0.0.1 at 2017-04-06 12:01:10 +0800
 994 Processing by ArticlesController#create as HTML
 995   Parameters: {"utf8"=>"", "authenticity_token"=>"C908an6cP2K+QcPM0lc2bIH5YnRZi+P/44zo/0ttDsF1oJ2Wtw/ARZTgnFwwUwxPS8Jh27jUUdU6UKss7uBuhw==", "article"=>{"text"=>"sdsd"}, "commit"=>"Create Article"}
 996    (0.4ms)  BEGIN
 997    (0.3ms)  ROLLBACK
 998 Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.7ms)
 999 
1000 
1001   
1002 NoMethodError (undefined method `title' for #<Article:0x007fb60016b2b0>):
1003   
1004 app/controllers/articles_controller.rb:21:in `block in create'
1005 app/controllers/articles_controller.rb:20:in `create'
1006   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
1007   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
1008   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (9.0ms)
1009   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
1010   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.3ms)
1011   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
1012   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
1013   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (34.2ms)
1014 Started GET "/articles" for 127.0.0.1 at 2017-04-06 12:01:13 +0800
1015 Processing by ArticlesController#index as HTML
1016   Rendering articles/index.html.erb within layouts/application
1017   Article Load (0.5ms)  SELECT `articles`.* FROM `articles`
1018   Rendered articles/index.html.erb within layouts/application (3.3ms)
1019 Completed 200 OK in 58ms (Views: 55.6ms | ActiveRecord: 0.5ms)
1020 
1021 
1022 Started GET "/articles/6" for 127.0.0.1 at 2017-04-06 12:01:17 +0800
1023 Processing by ArticlesController#show as HTML
1024   Parameters: {"id"=>"6"}
1025   Article Load (0.6ms)  SELECT  `articles`.* FROM `articles` WHERE `articles`.`id` = 6 LIMIT 1
1026   Rendering articles/show.html.erb within layouts/application
1027   Rendered articles/show.html.erb within layouts/application (0.8ms)
1028 Completed 200 OK in 50ms (Views: 47.6ms | ActiveRecord: 0.6ms)
1029 
1030 
1031 Started GET "/articles" for 127.0.0.1 at 2017-04-06 12:01:18 +0800
1032 Processing by ArticlesController#index as HTML
1033   Rendering articles/index.html.erb within layouts/application
1034   Article Load (0.5ms)  SELECT `articles`.* FROM `articles`
1035   Rendered articles/index.html.erb within layouts/application (3.5ms)
1036 Completed 200 OK in 60ms (Views: 57.0ms | ActiveRecord: 0.5ms)
1037 
1038 
1039 Started GET "/articles/3" for 127.0.0.1 at 2017-04-06 12:01:35 +0800
1040 Processing by ArticlesController#show as HTML
1041   Parameters: {"id"=>"3"}
1042   Article Load (0.5ms)  SELECT  `articles`.* FROM `articles` WHERE `articles`.`id` = 3 LIMIT 1
1043   Rendering articles/show.html.erb within layouts/application
1044   Rendered articles/show.html.erb within layouts/application (0.9ms)
1045 Completed 200 OK in 44ms (Views: 41.2ms | ActiveRecord: 0.5ms)
1046 
1047 
1048 Started GET "/articles/13" for 127.0.0.1 at 2017-04-06 12:01:37 +0800
1049 Processing by ArticlesController#show as HTML
1050   Parameters: {"id"=>"13"}
1051   Article Load (0.4ms)  SELECT  `articles`.* FROM `articles` WHERE `articles`.`id` = 13 LIMIT 1
1052 Completed 404 Not Found in 2ms (ActiveRecord: 0.4ms)
1053 
1054 
1055   
1056 ActiveRecord::RecordNotFound (Couldn't find Article with 'id'=13):
1057   
1058 app/controllers/articles_controller.rb:7:in `show'
1059   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout
1060   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
1061   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (6.0ms)
1062   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
1063   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms)
1064   Rendering /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
1065   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms)
1066   Rendered /usr/local/lib/ruby/gems/2.2.0/gems/actionpack-5.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (31.3ms)
1067 Started GET "/articles" for 127.0.0.1 at 2017-04-06 12:01:39 +0800
1068 Processing by ArticlesController#index as HTML
1069   Rendering articles/index.html.erb within layouts/application
1070   Article Load (1.1ms)  SELECT `articles`.* FROM `articles`
1071   Rendered articles/index.html.erb within layouts/application (4.3ms)
1072 Completed 200 OK in 49ms (Views: 46.4ms | ActiveRecord: 1.1ms)
1073 
1074 
1075 Started GET "/articles/3" for 127.0.0.1 at 2017-04-06 12:01:40 +0800
1076 Processing by ArticlesController#show as HTML
1077   Parameters: {"id"=>"3"}
1078   Article Load (0.5ms)  SELECT  `articles`.* FROM `articles` WHERE `articles`.`id` = 3 LIMIT 1
1079   Rendering articles/show.html.erb within layouts/application
1080   Rendered articles/show.html.erb within layouts/application (0.9ms)
1081 Completed 200 OK in 76ms (Views: 73.1ms | ActiveRecord: 0.5ms)
1082 
1083 
1084 Started GET "/articles" for 127.0.0.1 at 2017-04-06 12:01:42 +0800
1085 Processing by ArticlesController#index as HTML
1086   Rendering articles/index.html.erb within layouts/application
1087   Article Load (1.0ms)  SELECT `articles`.* FROM `articles`
1088   Rendered articles/index.html.erb within layouts/application (4.8ms)
1089 Completed 200 OK in 61ms (Views: 57.8ms | ActiveRecord: 1.0ms)

 

---恢复内容结束---

转载于:https://www.cnblogs.com/lanboy/p/6672826.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值