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
suggestions?
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>
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.