@not_found_user = name
respond_to do |format|
- format.html { render :template => "users/no_such_user", :status => :not_found }
+ format.html { render :template => "users/no_such_user", :status => :not_found, :layout => "site" }
format.all { head :not_found }
end
end
render :layout => "site"
else
- @title = t "users.no_such_user.title"
- @not_found_user = params[:display_name]
-
- render :template => "users/no_such_user", :status => :not_found, :layout => "site"
+ render_unknown_user params[:display_name]
end
end
end