Hey All,

Fairly new to all this, and having a routing problem I just cannot
figure out.


My routes.rb has:
----------

  resources :users do
    member do
      get 'following'
    end
  end


My users_controller.rb has:
----------

  def following
    @title = "Following"
    @user = User.find(params[:id])
    @users = @user.following.paginate(:page => params[:page])
    render 'show_follow'
  end

  def followers
    @title = "Followers"
    @user = User.find(params[:id])
    @users = @user.followers.paginate(:page => params[:page])
    render 'show_follow'
  end


In one of my views I'm using:
----------

  following_user_path(@user)


Which results in the following error:
----------

  No route matches {:action=>"following", :controller=>"users"}


Can anyone help?

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to