ActionView::Template::Error

undefined method `username' for nil:NilClass