ActionController::RoutingError in Posts#index

Not sure what happened to my last post so I will try again, here goes...

I am getting the following error and not sure why? I think its because
I am sending over an id when I shouldn't be. I was logged into my app
when I created this code referenced below and all was fine. I then
logged out and now I am getting this error everywhere and can't even get
into the log-in screen without commenting the code out. Any

Showing app/views/pages/_stats.html.erb where line #4 raised:

subscribing_user_url failed to generate from {:controller=>"users",
:action=>"subscribing", :id=>false}, expected: {:controller=>"users",
:action=>"subscribing"}, diff: {:id=>false}

Extracted source (around line #4):

1: <% @user ||= current_user %>
2: <div class="stats">
3: <h1>
4: <a href="<%= subscribing_user_path(@user) %>">
5: <span id="subscribing" class="stat">
6: <%= @user.subscribing.count %> subscribing
7: </span>

Ok, think I figured it out. @user and current_user are both nil and so
thus the error. So put in the following and seems to work.

<% @user ||= current_user %>
<% if @user %>
<% end %>