In routes.rb ho inserito:
resources :sessions
il controller e’:
class SessionsController < ApplicationController
def destroy
session[:id] = nil
session.delete(:casfilteruser)
CASClient::Frameworks::Rails::Filter.logout(self)
end
end
In application.html.erb ho:
<%= link_to ‘Esci’, session_path(session[:cas_user]), :method => :delete
%>
Mi sembra ci sia tutto ma:
No route matches {:action=>“destroy”, :controller=>“sessions”,
:id=>“utente.prova”}
Cosa manca?