Started GET "/" for 127.0.0.1 at 2013-02-07 13:49:50 +0900
Processing by StaffsController#index as HTML
User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
(0.5ms) SELECT MAX("staffs"."mail_id") AS max_id FROM "staffs"
Staff Load (1.0ms) SELECT "staffs".* FROM "staffs" WHERE "staffs"."mail_id" = '20130108151823978961'
Completed 500 Internal Server Error in 6ms
NoMethodError (undefined method `each' for nil:NilClass):
app/controllers/staffs_controller.rb:363:in `index'
Rendered /Users/marphy/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/marphy/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
Rendered /Users/marphy/.rvm/gems/ruby-1.9.3-p362/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (6.9ms)