I am in the process updating my app so I use the Devise gem for authentication. Everything appears to be working great, except for the fact that I can't seem to sign out.

I get the error:

Couldn't find User with ID=sign_out
Parameters:
{"id"=>"sign_out"}

I can trace the error back to the show action in my users controller:

  def show
    @user = User.find(params[:id])
  end

The problem is that I am not sure why it is trying to render the show action for my user. Overall my page has this format:

<% if user_signed_in? %>
    <%= render 'shared/feed_home' %>
<% else %>
  <%= render 'shared/splash' %>
<% end %>

As per devise instructions, my sign-out path looks like this:

<li><%= link_to "Sign out", destroy_user_session_path %></li>

If a user is not signed in, it should render the splash page which is basically static html. Any suggestions on how to help? Even if you could just put me in the right ball park in terms of the problem that would be much appreciated.

Here is my routes file:


  devise_for :users
  resources :users do
    member do
      get :following, :followers, :following_tags, :following_posts
    end
  end
  resources :posts 

  resources :votes
  resources :comments
  resources :tags
  resources :events

  #resources :posts,    :only => [:create, :destroy, :show]
  resources :relationships, :only => [:create, :destroy]

  root :to =>'pages#subscribed'


  match '/contact', :to => 'pages#contact'
  match '/about',   :to => 'pages#about'
  match '/live',   :to => "pages#home"
  match '/voted', :to => 'pages#highest_voted'
  match '/signup',  :to => 'users#new'

Here is my rake routes:

        new_user_session GET    /users/sign_in(.:format)             {:action=>"new", :controller=>
Edit
Report