Commit 5cbef7cb authored by 神楽坂玲奈's avatar 神楽坂玲奈

parent 59155025
...@@ -12,8 +12,9 @@ class ApplicationController < ActionController::Base ...@@ -12,8 +12,9 @@ class ApplicationController < ActionController::Base
@correct_user = User.find session[:user_id] @correct_user = User.find session[:user_id]
end end
unless @correct_user unless @correct_user
@correct_user = User.new @correct_user = User::Guest
@correct_user.name = '游客' @correct_user.id = 0
@correct_user.name = t 'user.anonymous'
end end
p @correct_user p @correct_user
end end
......
module ApplicationHelper module ApplicationHelper
def logged? def logged?
@correct_user.id @correct_user.id != 0
end end
end end
\ No newline at end of file
class User < ActiveRecord::Base class User < ActiveRecord::Base
#belongs_to :usergroup #belongs_to :usergroup
#belongs_to :admingroup #belongs_to :admingroup
validates_uniqueness_of :name validates :name, :presence => true,
:length => {:minimum => 1, :maximum => 254}
validates :email, :presence => true,
:length => {:minimum => 3, :maximum => 254},
:uniqueness => true,
:format => {:with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i}
def to_s def to_s
"<a href=\"/space/#{id}\">#{name}</a>".html_safe "<a href=\"/space/#{id}\">#{name}</a>".html_safe
end end
=begin
t.string :name, :null => false
t.string :nickname, :default => '', :null => false
t.string :password, :null => false
t.string :email, :default => '', :null => false
t.references :usergroup, :default => '', :null => false
t.references :admingroup, :default => '', :null => false
t.string :regip, :default => '', :null => false
t.string :lastloginip, :default => '', :null => false
t.integer :readnum, :default => 0, :null => false
t.integer :viewnum, :default => 0, :null => false
t.integer :onlinetime, :default => 0, :null => false
t.integer :credit, :default => 0, :null => false
t.integer :credit1, :default => 0, :null => false
t.integer :credit2, :default => 0, :null => false
t.integer :credit3, :default => 0, :null => false
t.integer :credit4, :default => 0, :null => false
t.integer :credit5, :default => 0, :null => false
t.integer :credit6, :default => 0, :null => false
t.integer :credit7, :default => 0, :null => false
t.integer :credit8, :default => 0, :null => false
=end
Guest = self.new do |user|
user.id = 0
user.name = "Guest"
user.nickname = ""
user.password = ""
user.email = ""
#user.usergroup
#user.admingroup, :default => '', :null => false
user.regip = "127.0.0.1"
user.lastloginip = "127.0.0.1"
user.readnum = 0
user.viewnum = 0
user.onlinetime = 0
user.credit = 0
user.credit1 = 0
user.credit2 = 0
user.credit3 = 0
user.credit4 = 0
user.credit5 = 0
user.credit6 = 0
user.credit7 = 0
user.credit8 = 0
user.readonly!
end
end end
...@@ -91970,3 +91970,675 @@ Started GET "/templates/goodnight/images/mnsv.swf" for 127.0.0.1 at 2011-03-28 1 ...@@ -91970,3 +91970,675 @@ Started GET "/templates/goodnight/images/mnsv.swf" for 127.0.0.1 at 2011-03-28 1
Parameters: {"anything"=>"templates/goodnight/images/mnsv.swf"} Parameters: {"anything"=>"templates/goodnight/images/mnsv.swf"}
Redirected to http://www.touhou.cc/bbs/templates/goodnight/images/mnsv.swf? Redirected to http://www.touhou.cc/bbs/templates/goodnight/images/mnsv.swf?
Completed 302 Found in 40ms Completed 302 Found in 40ms
Started GET "/" for 192.168.134.156 at 2011-03-29 16:31:38 +0800
SyntaxError (E:/zh99998/Reliz/app/controllers/application_controller.rb:16: invalid multibyte char (US-ASCII)
E:/zh99998/Reliz/app/controllers/application_controller.rb:16: invalid multibyte char (US-ASCII)
E:/zh99998/Reliz/app/controllers/application_controller.rb:16: syntax error, unexpected $end, expecting keyword_end
@correct_user.name = '娓稿'
^):
app/controllers/boards_controller.rb:1:in `<top (required)>'
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.0ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (31.2ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (62.5ms)
Started GET "/" for 192.168.134.156 at 2011-03-29 16:31:52 +0800
SyntaxError (E:/zh99998/Reliz/app/controllers/application_controller.rb:16: invalid multibyte char (US-ASCII)
E:/zh99998/Reliz/app/controllers/application_controller.rb:16: invalid multibyte char (US-ASCII)
E:/zh99998/Reliz/app/controllers/application_controller.rb:16: syntax error, unexpected $end, expecting keyword_end
@correct_user.name = '娓稿'
^):
app/controllers/boards_controller.rb:1:in `<top (required)>'
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.0ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.0ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (15.6ms)
Started GET "/" for 192.168.134.156 at 2011-03-29 16:31:58 +0800
SyntaxError (E:/zh99998/Reliz/app/controllers/application_controller.rb:16: invalid multibyte char (US-ASCII)
E:/zh99998/Reliz/app/controllers/application_controller.rb:16: invalid multibyte char (US-ASCII)
E:/zh99998/Reliz/app/controllers/application_controller.rb:16: syntax error, unexpected $end, expecting keyword_end
@correct_user.name = '娓稿'
^):
app/controllers/boards_controller.rb:1:in `<top (required)>'
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (15.6ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.0ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (15.6ms)
Started GET "/" for 192.168.134.156 at 2011-03-29 16:37:25 +0800
Processing by BoardsController#index as HTML
DEPRECATION WARNING: RAILS_ROOT is deprecated. Please use ::Rails.root.to_s. (called from set_language at E:/zh99998/Reliz/app/controllers/application_controller.rb:24)
Board Load (46.9ms) SELECT `boards`.* FROM `boards`
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (created_at > '2011-03-29')
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (created_at < '2011-03-29' and created_at > '2011-03-28')
SQL (15.6ms) SELECT COUNT(*) FROM `posts`
SQL (15.6ms) SHOW TABLES
SQL (15.6ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0)
SQL (15.6ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1))
Topic Load (15.6ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0) ORDER BY topics.id DESC LIMIT 1
CACHE (0.0ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0) ORDER BY topics.id DESC LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1)) ORDER BY posts.id DESC LIMIT 1
User Load (15.6ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1)) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1)) ORDER BY posts.id DESC LIMIT 1
Rendered layouts/_header.html.erb (0.0ms)
Rendered layouts/_top.html.erb (46.9ms)
Rendered layouts/_footer.html.erb (0.0ms)
Rendered boards/index.html.erb within layouts/application (859.4ms)
Completed 200 OK in 1844ms (Views: 750.0ms | ActiveRecord: 187.5ms)
Started GET "/forumdata/cache/scriptstyle_57_viewthread.css?qfY" for 192.168.134.156 at 2011-03-29 16:37:27 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"qfY"=>nil, "anything"=>"forumdata/cache/scriptstyle_57_viewthread.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/scriptstyle_57_viewthread.css?qfY
Completed 302 Found in 109ms
Started GET "/forumdata/cache/style_57_common.css?qfY" for 192.168.134.156 at 2011-03-29 16:37:27 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"qfY"=>nil, "anything"=>"forumdata/cache/style_57_common.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/style_57_common.css?qfY
Completed 302 Found in 62ms
Started GET "/forumdata/cache/style_57_moderator.css?1Yf" for 192.168.134.156 at 2011-03-29 16:37:28 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"1Yf"=>nil, "anything"=>"forumdata/cache/style_57_moderator.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/style_57_moderator.css?1Yf
Completed 302 Found in 62ms
Started GET "/forumdata/cache/common.js?qfY" for 192.168.134.156 at 2011-03-29 16:37:28 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"qfY"=>nil, "anything"=>"forumdata/cache/common.js"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/common.js?qfY
Completed 302 Found in 78ms
Started GET "/LinkTalk-Application/app-host.js" for 192.168.134.156 at 2011-03-29 16:37:28 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"LinkTalk-Application/app-host.js"}
Redirected to http://www.touhou.cc/bbs/LinkTalk-Application/app-host.js?
Completed 302 Found in 109ms
Started GET "/images/default/collapsed_no.gif" for 192.168.134.156 at 2011-03-29 16:37:29 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"images/default/collapsed_no.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/collapsed_no.gif?
Completed 302 Found in 62ms
Started GET "/images/default/collapsed_yes.gif" for 192.168.134.156 at 2011-03-29 16:37:29 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"images/default/collapsed_yes.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/collapsed_yes.gif?
Completed 302 Found in 62ms
Started GET "/images/default/collapsed_no.gif" for 192.168.134.156 at 2011-03-29 16:37:30 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"images/default/collapsed_no.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/collapsed_no.gif?
Completed 302 Found in 62ms
Started GET "/templates/goodnight/images/mnsv.swf" for 192.168.134.156 at 2011-03-29 16:37:31 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"templates/goodnight/images/mnsv.swf"}
Redirected to http://www.touhou.cc/bbs/templates/goodnight/images/mnsv.swf?
Completed 302 Found in 109ms
Started GET "/pm.php?checknewpm=0.04801049851812422&inajax=1&ajaxtarget=myprompt_check" for 192.168.134.156 at 2011-03-29 16:37:31 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"checknewpm"=>"0.04801049851812422", "inajax"=>"1", "ajaxtarget"=>"myprompt_check", "anything"=>"pm.php"}
Redirected to http://www.touhou.cc/bbs/pm.php?checknewpm=0.04801049851812422&inajax=1&ajaxtarget=myprompt_check
Completed 302 Found in 62ms
Started GET "/images/default/loading.gif" for 192.168.134.156 at 2011-03-29 16:37:31 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"images/default/loading.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/loading.gif?
Completed 302 Found in 62ms
Started GET "/forum/1" for 192.168.134.156 at 2011-03-29 16:37:43 +0800
Processing by BoardsController#show as HTML
Parameters: {"id"=>"1"}
Board Load (15.6ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.`id` = 1) LIMIT 1
Topic Load (15.6ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0) ORDER BY displayorder, id LIMIT 20 OFFSET 0
SQL (15.6ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0)
SQL (15.6ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1))
CACHE (0.0ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0)
Rendered layouts/_pages.html.erb (0.0ms)
User Load (15.6ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 3) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 3)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 3) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 3) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 3) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 3) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 4) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 4)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 4) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 4) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 4) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 4) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 5) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 5)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 5) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 5) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 5) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 5) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 6) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 6)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 6) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 6) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 6) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 6) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (31.2ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 7) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 7)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 7) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 7) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 7) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 7) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 8) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 8)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 8) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 8) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 8) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 8) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 9) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 9)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 9) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 9) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 9) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 9) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 10) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 10)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 10) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 10) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 10) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 10) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 11) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 11)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 11) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 11) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 11) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 11) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 12) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 12)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 12) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 12) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 12) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 12) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 13) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 13)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 13) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 13) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 13) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 13) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 14) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 14)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 14) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 14) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 14) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 14) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 15) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 15)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 15) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 15) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 15) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 15) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 16) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 16)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 16) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 16) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 16) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 16) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 17) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 17)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 17) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 17) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 17) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 17) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 18) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 18)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 18) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 18) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 18) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 18) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 19) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 19)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 19) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 19) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 19) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 19) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 20) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 20)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 20) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 20) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 20) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 20) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 21) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 21)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 21) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 21) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 21) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 21) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 22) ORDER BY posts.id DESC LIMIT 1
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (`posts`.topic_id = 22)
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 22) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 1) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 22) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 22) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 22) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0)
Rendered layouts/_pages.html.erb (0.0ms)
Rendered layouts/_header.html.erb (0.0ms)
Rendered layouts/_top.html.erb (15.6ms)
Rendered layouts/_footer.html.erb (0.0ms)
Rendered boards/show.html.erb within layouts/application (1187.5ms)
Completed 200 OK in 1484ms (Views: 531.2ms | ActiveRecord: 718.8ms)
Started GET "/forum/forumdata/cache/style_57_common.css?qfY" for 192.168.134.156 at 2011-03-29 16:37:45 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"qfY"=>nil, "something"=>"forum", "anything"=>"forumdata/cache/style_57_common.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/style_57_common.css?qfY
Completed 302 Found in 62ms
Started GET "/forum/forumdata/cache/scriptstyle_57_viewthread.css?qfY" for 192.168.134.156 at 2011-03-29 16:37:45 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"qfY"=>nil, "something"=>"forum", "anything"=>"forumdata/cache/scriptstyle_57_viewthread.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/scriptstyle_57_viewthread.css?qfY
Completed 302 Found in 62ms
Started GET "/forum/forumdata/cache/common.js?qfY" for 192.168.134.156 at 2011-03-29 16:37:45 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"qfY"=>nil, "something"=>"forum", "anything"=>"forumdata/cache/common.js"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/common.js?qfY
Completed 302 Found in 109ms
Started GET "/forum/LinkTalk-Application/app-host.js" for 192.168.134.156 at 2011-03-29 16:37:46 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"something"=>"forum", "anything"=>"LinkTalk-Application/app-host.js"}
Redirected to http://www.touhou.cc/bbs/LinkTalk-Application/app-host.js?
Completed 302 Found in 78ms
Started GET "/forum/forumdata/cache/style_57_moderator.css?1Yf" for 192.168.134.156 at 2011-03-29 16:37:46 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"1Yf"=>nil, "something"=>"forum", "anything"=>"forumdata/cache/style_57_moderator.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/style_57_moderator.css?1Yf
Completed 302 Found in 62ms
Started GET "/forum/images/default/collapsed_yes.gif" for 192.168.134.156 at 2011-03-29 16:37:46 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"something"=>"forum", "anything"=>"images/default/collapsed_yes.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/collapsed_yes.gif?
Completed 302 Found in 62ms
Started GET "/forum/templates/goodnight/images/mnsv.swf" for 192.168.134.156 at 2011-03-29 16:37:46 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"something"=>"forum", "anything"=>"templates/goodnight/images/mnsv.swf"}
Redirected to http://www.touhou.cc/bbs/templates/goodnight/images/mnsv.swf?
Completed 302 Found in 62ms
Started GET "/forum/pm.php?checknewpm=0.5694520573597401&inajax=1&ajaxtarget=myprompt_check" for 192.168.134.156 at 2011-03-29 16:37:46 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"checknewpm"=>"0.5694520573597401", "inajax"=>"1", "ajaxtarget"=>"myprompt_check", "something"=>"forum", "anything"=>"pm.php"}
Redirected to http://www.touhou.cc/bbs/pm.php?checknewpm=0.5694520573597401&inajax=1&ajaxtarget=myprompt_check
Completed 302 Found in 109ms
Started GET "/forum/images/default/loading.gif" for 192.168.134.156 at 2011-03-29 16:37:46 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"something"=>"forum", "anything"=>"images/default/loading.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/loading.gif?
Completed 302 Found in 62ms
Started POST "/topics" for 192.168.134.156 at 2011-03-29 16:42:03 +0800
Processing by TopicsController#create as HTML
Parameters: {"utf8"=>"鉁", "authenticity_token"=>"a6HdEdPSKtYh3vNOT7y8b1+KPJqEo4DbM1SABbedhHk=", "topic"=>{"name"=>"娓稿鍙戝笘", "category_id"=>"1", "category_type"=>"board"}, "post"=>{"content"=>"test"}, "commit"=>"鎻愪氦"}
SQL (15.6ms) BEGIN
User Load (15.6ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`name` = BINARY 'translation missing: zh-CN.user.anonymous') LIMIT 1
SQL (31.2ms) describe `users`
AREL (15.6ms) INSERT INTO `users` (`name`, `nickname`, `password`, `email`, `usergroup_id`, `admingroup_id`, `regip`, `lastloginip`, `readnum`, `viewnum`, `onlinetime`, `credit`, `credit1`, `credit2`, `credit3`, `credit4`, `credit5`, `credit6`, `credit7`, `credit8`, `created_at`, `updated_at`, `id`) VALUES ('translation missing: zh-CN.user.anonymous', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2011-03-29 08:42:04', '2011-03-29 08:42:04', 0)
SQL (15.6ms) describe `topics`
AREL (15.6ms) INSERT INTO `topics` (`user_id`, `type_id`, `category_id`, `category_type`, `name`, `displayorder`, `highlight`, `views`, `readperm`, `locked`, `deleted`, `reverse`, `private`, `created_at`, `updated_at`) VALUES (0, NULL, 1, 'board', '娓稿鍙戝笘', 0, 0, 0, 1, 0, 0, 0, 0, '2011-03-29 08:42:04', '2011-03-29 08:42:04')
SQL (62.5ms) COMMIT
SQL (15.6ms) BEGIN
SQL (15.6ms) describe `posts`
AREL (15.6ms) INSERT INTO `posts` (`topic_id`, `user_id`, `content`, `displayorder`, `readperm`, `private`, `anonymous`, `ubb`, `html`, `created_at`, `updated_at`) VALUES (26, 0, 'test', 1, NULL, NULL, NULL, NULL, NULL, '2011-03-29 08:42:04', '2011-03-29 08:42:04')
SQL (31.2ms) COMMIT
Redirected to http://zhu-pc:3000/topics/26
Completed 302 Found in 688ms
Started GET "/topics/26" for 192.168.134.156 at 2011-03-29 16:42:04 +0800
Processing by TopicsController#show as HTML
Parameters: {"id"=>"26"}
Topic Load (15.6ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.`id` = 26) LIMIT 1
Board Load (15.6ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.`topic_id` = 26) ORDER BY displayorder LIMIT 10 OFFSET 0
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 26)
User Load (15.6ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 0) LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 0) LIMIT 1
Rendered topics/show.html.erb within layouts/application (187.5ms)
Completed in 578ms
ActionView::Template::Error (undefined method `nickname' for nil:NilClass):
59: <div>
60: <div class="avatar" onmouseover="showauthor(this, 'userinfo751931')"><a href="space.php?uid=14806" target="_blank"><img src="http://www.touhou.cc/ucenter/avatar.php?uid=14806&amp;size=middle"></a></div>
61: <p>
62: <em><%= post.user.nickname %></em>
63:
64: </div>
65: <p><img src="images/default/star_level2.gif" alt="Rank: 2"></p>
app/views/topics/show.html.erb:62:in `block in _app_views_topics_show_html_erb___931116196_14458944_673147403'
app/views/topics/show.html.erb:29:in `_app_views_topics_show_html_erb___931116196_14458944_673147403'
app/controllers/topics_controller.rb:52:in `show'
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.0ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (46.9ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (78.1ms)
Started GET "/topics/26" for 192.168.134.156 at 2011-03-29 16:43:04 +0800
Processing by TopicsController#show as HTML
Parameters: {"id"=>"26"}
Topic Load (15.6ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.`id` = 26) LIMIT 1
Board Load (15.6ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.`id` = 1) LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.`topic_id` = 26) ORDER BY displayorder LIMIT 10 OFFSET 0
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 26)
User Load (15.6ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 0) LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 0) LIMIT 1
Rendered topics/show.html.erb within layouts/application (140.6ms)
Completed in 500ms
ActionView::Template::Error (undefined method `nickname' for nil:NilClass):
59: <div>
60: <div class="avatar" onmouseover="showauthor(this, 'userinfo751931')"><a href="space.php?uid=14806" target="_blank"><img src="http://www.touhou.cc/ucenter/avatar.php?uid=14806&amp;size=middle"></a></div>
61: <p>
62: <em><%= post.user.nickname %></em>
63:
64: </div>
65: <p><img src="images/default/star_level2.gif" alt="Rank: 2"></p>
app/views/topics/show.html.erb:62:in `block in _app_views_topics_show_html_erb___931116196_12285468_673147403'
app/views/topics/show.html.erb:29:in `_app_views_topics_show_html_erb___931116196_12285468_673147403'
app/controllers/topics_controller.rb:52:in `show'
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.0ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (46.9ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (62.5ms)
Started GET "/" for 192.168.134.156 at 2011-03-29 20:26:34 +0800
Processing by BoardsController#index as HTML
DEPRECATION WARNING: RAILS_ROOT is deprecated. Please use ::Rails.root.to_s. (called from set_language at E:/zh99998/Reliz/app/controllers/application_controller.rb:25)
Board Load (15.6ms) SELECT `boards`.* FROM `boards`
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (created_at > '2011-03-29')
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (created_at < '2011-03-29' and created_at > '2011-03-28')
SQL (15.6ms) SELECT COUNT(*) FROM `posts`
SQL (15.6ms) SHOW TABLES
SQL (15.6ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0)
SQL (15.6ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1))
Topic Load (15.6ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0) ORDER BY topics.id DESC LIMIT 1
CACHE (0.0ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0) ORDER BY topics.id DESC LIMIT 1
Post Load (15.6ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1)) ORDER BY posts.id DESC LIMIT 1
User Load (15.6ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 0) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1)) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1)) ORDER BY posts.id DESC LIMIT 1
Rendered layouts/_header.html.erb (0.0ms)
Rendered layouts/_top.html.erb (15.6ms)
Rendered layouts/_footer.html.erb (0.0ms)
Rendered boards/index.html.erb within layouts/application (1421.9ms)
Completed 200 OK in 2422ms (Views: 1328.1ms | ActiveRecord: 156.2ms)
Started GET "/forumdata/cache/style_57_common.css?qfY" for 192.168.134.156 at 2011-03-29 20:26:59 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"qfY"=>nil, "anything"=>"forumdata/cache/style_57_common.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/style_57_common.css?qfY
Completed 302 Found in 62ms
Started GET "/forumdata/cache/style_57_moderator.css?1Yf" for 192.168.134.156 at 2011-03-29 20:26:59 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"1Yf"=>nil, "anything"=>"forumdata/cache/style_57_moderator.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/style_57_moderator.css?1Yf
Completed 302 Found in 109ms
Started GET "/forumdata/cache/scriptstyle_57_viewthread.css?qfY" for 192.168.134.156 at 2011-03-29 20:26:59 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"qfY"=>nil, "anything"=>"forumdata/cache/scriptstyle_57_viewthread.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/scriptstyle_57_viewthread.css?qfY
Completed 302 Found in 78ms
Started GET "/forumdata/cache/common.js?qfY" for 192.168.134.156 at 2011-03-29 20:27:00 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"qfY"=>nil, "anything"=>"forumdata/cache/common.js"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/common.js?qfY
Completed 302 Found in 62ms
Started GET "/LinkTalk-Application/app-host.js" for 192.168.134.156 at 2011-03-29 20:27:00 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"LinkTalk-Application/app-host.js"}
Redirected to http://www.touhou.cc/bbs/LinkTalk-Application/app-host.js?
Completed 302 Found in 62ms
Started GET "/images/default/collapsed_yes.gif" for 192.168.134.156 at 2011-03-29 20:27:02 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"images/default/collapsed_yes.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/collapsed_yes.gif?
Completed 302 Found in 62ms
Started GET "/images/default/collapsed_no.gif" for 192.168.134.156 at 2011-03-29 20:27:02 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"images/default/collapsed_no.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/collapsed_no.gif?
Completed 302 Found in 156ms
Started GET "/templates/goodnight/images/mnsv.swf" for 192.168.134.156 at 2011-03-29 20:27:08 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"templates/goodnight/images/mnsv.swf"}
Redirected to http://www.touhou.cc/bbs/templates/goodnight/images/mnsv.swf?
Completed 302 Found in 78ms
Started GET "/pm.php?checknewpm=0.8679056204855442&inajax=1&ajaxtarget=myprompt_check" for 192.168.134.156 at 2011-03-29 20:27:08 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"checknewpm"=>"0.8679056204855442", "inajax"=>"1", "ajaxtarget"=>"myprompt_check", "anything"=>"pm.php"}
Redirected to http://www.touhou.cc/bbs/pm.php?checknewpm=0.8679056204855442&inajax=1&ajaxtarget=myprompt_check
Completed 302 Found in 94ms
Started GET "/images/default/loading.gif" for 192.168.134.156 at 2011-03-29 20:27:08 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"images/default/loading.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/loading.gif?
Completed 302 Found in 78ms
Started GET "/topic/26" for 192.168.134.156 at 2011-03-29 20:27:12 +0800
Processing by TopicsController#show as HTML
Parameters: {"id"=>"26"}
Topic Load (15.6ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.`id` = 26) LIMIT 1
Board Load (15.6ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.`id` = 1) LIMIT 1
Post Load (31.2ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.`topic_id` = 26) ORDER BY displayorder LIMIT 10 OFFSET 0
Post Load (15.6ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.topic_id = 26)
User Load (15.6ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 0) LIMIT 1
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 0) LIMIT 1
Rendered topics/show.html.erb within layouts/application (203.1ms)
Completed in 703ms
ActionView::Template::Error (undefined method `nickname' for nil:NilClass):
59: <div>
60: <div class="avatar" onmouseover="showauthor(this, 'userinfo751931')"><a href="space.php?uid=14806" target="_blank"><img src="http://www.touhou.cc/ucenter/avatar.php?uid=14806&amp;size=middle"></a></div>
61: <p>
62: <em><%= post.user.nickname %></em>
63:
64: </div>
65: <p><img src="images/default/star_level2.gif" alt="Rank: 2"></p>
app/views/topics/show.html.erb:62:in `block in _app_views_topics_show_html_erb___1031537785_16258560_74859490'
app/views/topics/show.html.erb:29:in `_app_views_topics_show_html_erb___1031537785_16258560_74859490'
app/controllers/topics_controller.rb:52:in `show'
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.0ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (93.8ms)
Rendered e:/zh99998/Ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (109.4ms)
Started GET "/" for 192.168.134.156 at 2011-03-29 21:04:33 +0800
Processing by BoardsController#index as HTML
Board Load (15.6ms) SELECT `boards`.* FROM `boards`
SQL (921.9ms) SELECT COUNT(*) FROM `posts` WHERE (created_at > '2011-03-29')
SQL (15.6ms) SELECT COUNT(*) FROM `posts` WHERE (created_at < '2011-03-29' and created_at > '2011-03-28')
SQL (15.6ms) SELECT COUNT(*) FROM `posts`
SQL (15.6ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0)
SQL (15.6ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1))
Topic Load (437.5ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0) ORDER BY topics.id DESC LIMIT 1
CACHE (0.0ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.category_id = 1) AND (`topics`.`deleted` = 0) ORDER BY topics.id DESC LIMIT 1
Post Load (31.2ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1)) ORDER BY posts.id DESC LIMIT 1
User Load (15.6ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` = 0) LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1)) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 1)) ORDER BY posts.id DESC LIMIT 1
Rendered layouts/_header.html.erb (0.0ms)
Rendered layouts/_top.html.erb (0.0ms)
Rendered layouts/_footer.html.erb (0.0ms)
Rendered boards/index.html.erb within layouts/application (1875.0ms)
Completed 200 OK in 3438ms (Views: 500.0ms | ActiveRecord: 1484.4ms)
Started GET "/forumdata/cache/style_57_common.css?qfY" for 192.168.134.156 at 2011-03-29 21:04:47 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"qfY"=>nil, "anything"=>"forumdata/cache/style_57_common.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/style_57_common.css?qfY
Completed 302 Found in 125ms
Started GET "/forumdata/cache/style_57_moderator.css?1Yf" for 192.168.134.156 at 2011-03-29 21:05:34 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"1Yf"=>nil, "anything"=>"forumdata/cache/style_57_moderator.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/style_57_moderator.css?1Yf
Completed 302 Found in 78ms
Started GET "/forumdata/cache/scriptstyle_57_viewthread.css?qfY" for 192.168.134.156 at 2011-03-29 21:05:35 +0800
Processing by ApplicationController#redirect_to_thc as HTML
Parameters: {"qfY"=>nil, "anything"=>"forumdata/cache/scriptstyle_57_viewthread.css"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/scriptstyle_57_viewthread.css?qfY
Completed 302 Found in 78ms
Started GET "/forumdata/cache/common.js?qfY" for 192.168.134.156 at 2011-03-29 21:05:35 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"qfY"=>nil, "anything"=>"forumdata/cache/common.js"}
Redirected to http://www.touhou.cc/bbs/forumdata/cache/common.js?qfY
Completed 302 Found in 78ms
Started GET "/LinkTalk-Application/app-host.js" for 192.168.134.156 at 2011-03-29 21:05:35 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"LinkTalk-Application/app-host.js"}
Redirected to http://www.touhou.cc/bbs/LinkTalk-Application/app-host.js?
Completed 302 Found in 78ms
Started GET "/images/default/collapsed_no.gif" for 192.168.134.156 at 2011-03-29 21:05:36 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"images/default/collapsed_no.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/collapsed_no.gif?
Completed 302 Found in 125ms
Started GET "/images/default/collapsed_yes.gif" for 192.168.134.156 at 2011-03-29 21:05:36 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"images/default/collapsed_yes.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/collapsed_yes.gif?
Completed 302 Found in 78ms
Started GET "/templates/goodnight/images/mnsv.swf" for 192.168.134.156 at 2011-03-29 21:05:37 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"templates/goodnight/images/mnsv.swf"}
Redirected to http://www.touhou.cc/bbs/templates/goodnight/images/mnsv.swf?
Completed 302 Found in 78ms
Started GET "/pm.php?checknewpm=0.45817317720502615&inajax=1&ajaxtarget=myprompt_check" for 192.168.134.156 at 2011-03-29 21:05:37 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"checknewpm"=>"0.45817317720502615", "inajax"=>"1", "ajaxtarget"=>"myprompt_check", "anything"=>"pm.php"}
Redirected to http://www.touhou.cc/bbs/pm.php?checknewpm=0.45817317720502615&inajax=1&ajaxtarget=myprompt_check
Completed 302 Found in 78ms
Started GET "/images/default/loading.gif" for 192.168.134.156 at 2011-03-29 21:05:37 +0800
Processing by ApplicationController#redirect_to_thc as */*
Parameters: {"anything"=>"images/default/loading.gif"}
Redirected to http://www.touhou.cc/bbs/images/default/loading.gif?
Completed 302 Found in 62ms
7580 2124
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment