I do not like to post another topic about it, since it seems like about a dozen, but I can not find a solution to this problem for me.
In mine application.html.erbI have:
<% if user_signed_in? %>
Logged in as <strong><%= current_user.email %></strong>.
<%= link_to 'Settings', edit_user_registration_path %> |
<%= link_to "Log out", destroy_user_session_path, method: :delete %>
<% else %>
<%= link_to "Sign up", new_user_registration_path %> |
<%= link_to "Log in", new_user_session_path %>
<% end %>
routes look like this:
devise_for :users,
path_names: {sign_in: "login", sign_out: "logout"}
resources :users
resources :addresses
root 'users#index'
get 'dashboard', to: "users#dashboard"
And my local log is as follows:
started GET "/users/logout" for 127.0.0.1 at 2013-10-21 17:47:21 -0700
Processing by UsersController
Parameters: {"id"=>"logout"}
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
Rendered users/show.erb within layouts/application (1.2ms)
So, like many other topics, he tries to convey logouthow id. I have :deletein my link application.html.erb, so not him.
This is what is in my application.js:
It looks good.
Any ideas? I'm at a dead end ...
Edit: output from rake routes
Prefix Verb URI Pattern Controller
new_user_session GET /users/login(.:format) devise/sessions
user_session POST /users/login(.:format) devise/sessions
destroy_user_session DELETE /users/logout(.:format) devise/sessions
user_password POST /users/password(.:format) devise/passwords
new_user_password GET /users/password/new(.:format) devise/passwords
edit_user_password GET /users/password/edit(.:format) devise/passwords
PATCH /users/password(.:format) devise/passwords
PUT /users/password(.:format) devise/passwords
cancel_user_registration GET /users/cancel(.:format) devise/registrations
user_registration POST /users(.:format) devise/registrations
new_user_registration GET /users/sign_up(.:format) devise/registrations
edit_user_registration GET /users/edit(.:format) devise/registrations
PATCH /users(.:format) devise/registrations
PUT /users(.:format) devise/registrations
DELETE /users(.:format) devise/registrations
users GET /users(.:format) users
POST /users(.:format) users
new_user GET /users/new(.:format) users
edit_user GET /users/:id/edit(.:format) users
user GET /users/:id(.:format) users
PATCH /users/:id(.:format) users
PUT /users/:id(.:format) users
DELETE /users/:id(.:format) users
addresses GET /addresses(.:format) addresses
POST /addresses(.:format) addresses
new_address GET /addresses/new(.:format) addresses
edit_address GET /addresses/:id/edit(.:format) addresses
address GET /addresses/:id(.:format) addresses
PATCH /addresses/:id(.:format) addresses
PUT /addresses/:id(.:format) addresses
DELETE /addresses/:id(.:format) addresses
root GET / users
dashboard GET /dashboard(.:format) users
send_im_home_text GET /im_home(.:format) users