Routing Error

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:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs